Compare commits

..

1 commit

Author SHA1 Message Date
fb591c8852 lua-only no fennel 2024-08-14 16:26:26 +02:00
37 changed files with 528 additions and 349 deletions

3
.gitignore vendored
View file

@ -1,3 +1,2 @@
lua/
lua_bak/
fnl/
lazy-lock.json

View file

@ -3,8 +3,8 @@
(local espresso (require :catppuccin))
(local color_overrides
{ :macchiato
{ :rosewater :#F5B8AB
{ :macchiato
{ :rosewater :#F5B8AB
:flamingo :#F29D9D
:pink :#AD6FF7
:mauve :#FF8F40
@ -32,36 +32,32 @@
:crust :#191926 } })
(local integrations
{ :cmp true
:gitsigns true
:treesitter true
{ :cmp true
:gitsigns true
:treesitter true
:telescope
{ :enabled true
:style :nvchad }
:telescope
{ :enabled true
:style :nvchad }
:mini
{ :enabled true} })
:mini
{ :enabled true} })
(espresso.setup
{ :flavour :macchiato
:color_overrides color_overrides
:integrations integrations })
{ :flavour :macchiato
:color_overrides color_overrides
:integrations integrations })
(set! background :dark)
(exec! [colorscheme catppuccin])
(vim.api.nvim_set_hl 0 :Normal {:bg :none})
(vim.api.nvim_set_hl 0 :NormalFloat {:bg :none})
(vim.api.nvim_set_hl 0 :FloatBorder {:bg :none})
(vim.api.nvim_set_hl 0 :Pmenu {:bg :none})
; (local highlight_overrides
; { :all
; (fn [colors]
; { :all
; (fn [colors]
; :CurSearch { :bg colors.sky }
; :IncSearch { :bg colors.sky }
; :CursorLineNr { :fg colors.blue :style [:bold] }

View file

@ -3,7 +3,6 @@
(g! mapleader " ")
(map! [n :noremap] :<leader>gd "<cmd>lua vim.lsp.buf.hover()<CR>")
; trim those bastards
(map! [n :noremap] :<leader>tw "<cmd>lua MiniTrailspace.trim()<CR>")
@ -17,7 +16,6 @@
(map! [n :noremap] :<leader>fk "<cmd>Telescope keymaps<CR>")
(map! [n :noremap] :<leader>tt "<cmd>terminal<CR>")
(map! [t :noremap] :<Esc> "<C-\\><C-n>")
(map! [n :noremap] :<C-Space> "<cmd>bprev<CR>")
; remap keys so that they dont skip camelCase

View file

@ -1,31 +1,31 @@
(import-macros {: set! : g! : exec!} :hibiscus.vim)
(set! number true) ; enable line number
(set! relativenumber true) ; enable relative line number
(set! undofile true) ; persistent undo
(set! backup false) ; disable backup
(set! autowrite true) ; auto write buffer when it's not focused
(set! ignorecase true) ; case insensitive on search..
(set! list true) ; display listchars
(set! smartindent false) ; smarter indentation
(set! splitright true) ; split right instead of left
(set! splitkeep :screen) ; stabilize split
(set! startofline false) ; don't go to the start of the line when moving to another file
(set! swapfile false) ; disable swapfile
(set! termguicolors true) ; true colours for better experience
(set! wrap false) ; don't wrap lines
(set! backupcopy :yes) ; fix weirdness for stuff that replaces the entire file when hot reloading
(set! number true) ; enable line number
(set! relativenumber true) ; enable relative line number
(set! undofile true) ; persistent undo
(set! backup false) ; disable backup
(set! autowrite true) ; auto write buffer when it's not focused
(set! ignorecase true) ; case insensitive on search..
(set! list true) ; display listchars
(set! smartindent false) ; smarter indentation
(set! splitright true) ; split right instead of left
(set! splitkeep :screen) ; stabilize split
(set! startofline false) ; don't go to the start of the line when moving to another file
(set! swapfile false) ; disable swapfile
(set! termguicolors true) ; true colours for better experience
(set! wrap false) ; don't wrap lines
(set! backupcopy :yes) ; fix weirdness for stuff that replaces the entire file when hot reloading
(set! smarttab false)
(set! tabstop 4)
(set! softtabstop 4)
(set! shiftwidth 4)
(set! expandtab true)
(set! expandtab false)
(set! compatible false) ; disable compatibility with old vi
(set! showmatch true) ; show matches while searching for text
(set! hlsearch true) ; highlight text that has been searched
(set! incsearch true) ; incramentally search
(set! showmatch true) ; show matches while searching for text
(set! hlsearch true) ; highlight text that has been searched
(set! incsearch true) ; incramentally search
(set! autoindent true)
(set! wildmode "longest,list")
(set! inccommand :split)
@ -34,7 +34,7 @@
(set! mouse :v)
(set! mouse :a)
(set! clipboard :unnamedplus) ; use system clipboard
; (set! clipboard :unnamedplus) ; use system clipboard
(set! ttyfast true)
(set! cursorline true)
(set! splitbelow true)
@ -49,33 +49,33 @@
; Skip loading of following neovim builtins
(local default_plugins {
:2html_plugin
:getscript
:getscriptPlugin
:gzip
:logipat
:netrw
:netrwPlugin
:netrwSettings
:netrwFileHandlers
:matchit
:tar
:tarPlugin
:rrhelper
:spellfile_plugin
:vimball
:vimballPlugin
:zip
:zipPlugin
:tutor
:rplugin
:syntax
:synmenu
:optwin
:compiler
:bugreport
:ftplugin })
:2html_plugin
:getscript
:getscriptPlugin
:gzip
:logipat
:netrw
:netrwPlugin
:netrwSettings
:netrwFileHandlers
:matchit
:tar
:tarPlugin
:rrhelper
:spellfile_plugin
:vimball
:vimballPlugin
:zip
:zipPlugin
:tutor
:rplugin
:syntax
:synmenu
:optwin
:compiler
:bugreport
:ftplugin })
(each [_ plug (ipairs default_plugins)]
(g! (.. :loaded plug) 1))
(g! (.. :loaded plug) 1))

View file

@ -1,25 +1,25 @@
(local plug (require :nvim-web-devicons))
(plug.setup [
:strict true
:default true
:color_icons true
:strict true
:default true
:color_icons true
:override
[ :zsh
[ :icon ""
:color "#428850"
:cterm_color "65"
:name "zsh" ]]
:override
[ :zsh
[ :icon ""
:color "#428850"
:cterm_color "65"
:name "zsh" ]]
:override_by_filename
[ :.gitignore
[ :icon ""
:color "#f1502f"
:name "gitignore" ]]
:override_by_filename
[ :.gitignore
[ :icon ""
:color "#f1502f"
:name "gitignore" ]]
:override_by_extension
[ :log
[ :icon ""
:color "#81e043"
:name "Log" ]] ])
:override_by_extension
[ :log
[ :icon ""
:color "#81e043"
:name "Log" ]] ])

View file

@ -1,40 +1,40 @@
(local gitsigns (require :gitsigns))
(gitsigns.setup {
:signs
{ :add {:text :▍}
:change {:text :▍}
:delete {:text :▍}
:topdelete {:text :▍}
:changedelete {:text :▍}
:untracked {:text :▍} }
:signs
{ :add {:text :▍}
:change {:text :▍}
:delete {:text :▍}
:topdelete {:text :▍}
:changedelete {:text :▍}
:untracked {:text :▍} }
:signcolumn true
:numhl false
:linehl false
:word_diff false
:signcolumn true
:numhl false
:linehl false
:word_diff false
:watch_gitdir { :follow_files true }
:watch_gitdir { :follow_files true }
:attach_to_untracked true
:current_line_blame false
:attach_to_untracked true
:current_line_blame false
:current_line_blame_opts
{ :virt_text true
:virt_text_pos :eol
:delay 1000
:ignore_whitespace false }
:current_line_blame_opts
{ :virt_text true
:virt_text_pos :eol
:delay 1000
:ignore_whitespace false }
:current_line_blame_formatter "<author>, <author_time:%Y-%m-%d> - <summary>"
:sign_priority 6
:update_debounce 100
:status_formatter nil
:max_file_length 40000
:current_line_blame_formatter "<author>, <author_time:%Y-%m-%d> - <summary>"
:sign_priority 6
:update_debounce 100
:status_formatter nil
:max_file_length 40000
:preview_config
{ :border :single
:style :minimal
:relative :cursor
:row 0
:col 1 } })
:preview_config
{ :border :single
:style :minimal
:relative :cursor
:row 0
:col 1 } })

View file

@ -1,27 +1,27 @@
(local hlchunk (require :hlchunk))
(hlchunk.setup {
:indent {
:enable true
:chars [ "." "." "." "." ]
:indent {
:enable true
:chars [ "." "." "." "." ]
:style
{ :#888888
:#666666
:#444444
:#333333
:#333333
:#333333
:#333333
:#333333 } }
:style
{ :#888888
:#666666
:#444444
:#333333
:#333333
:#333333
:#333333
:#333333 } }
:blank { :enable false }
:blank { :enable false }
:chunk { :enable false }
:chunk { :enable false }
:line_num {
:enable false
:style :#ADBC9F
}
:line_num {
:enable false
:style :#ADBC9F
}
})

View file

@ -1,35 +1,35 @@
(local incline (require :incline))
(incline.setup
{ :highlight
{ :groups
{ :InclineNormal
{ :default true
:group :lualine_a_normal }
{ :highlight
{ :groups
{ :InclineNormal
{ :default true
:group :lualine_a_normal }
:InclineNormalNC
{ :default true
:group :Comment } }}
:window
{ :margin
{ :vertical 0
:horizontal 1 }}
; :render
; (fn [props]
; (let
; [
; filename (vim.fn.fnamemodify (vim.api.nvim_buf_get_name props.buf) ::t)
; [icon color] (require :nvim-web-devicons).get_icon_color filename
; ]
;
; ([
; { icon
; { :guifg color } }
;
; [(if icon " " "")]
;
; [filename] ]) ))
})
:InclineNormalNC
{ :default true
:group :Comment } }}
:window
{ :margin
{ :vertical 0
:horizontal 1 }}
; :render
; (fn [props]
; (let
; [
; filename (vim.fn.fnamemodify (vim.api.nvim_buf_get_name props.buf) ::t)
; [icon color] (require :nvim-web-devicons).get_icon_color filename
; ]
;
; ([
; { icon
; { :guifg color } }
;
; [(if icon " " "")]
;
; [filename] ]) ))
})
; render = function(props)

View file

@ -4,12 +4,12 @@
(require (modul :lazy))
(require (modul :devicons))
(require (modul :gitsigns))
; (require (modul :harpoon))
(require (modul :harpoon))
(require (modul :lsp-zero))
(require (modul :lualine))
(require (modul :mini))
(require (modul :telescope))
(require (modul :treesitter))
; (require (modul :wilder))
(require (modul :wilder))
(require (modul :incline))
(require (modul :colorizer))

View file

@ -1,8 +1,8 @@
(local lazypath (.. (vim.fn.stdpath :data) :/lazy/lazy.nvim))
(if (not (vim.loop.fs_stat lazypath))
(vim.fn.system
[:git :clone :--filter=blob:none :https://github.com/folke/lazy.nvim.git :--branch=stable lazypath]))
(vim.fn.system
[:git :clone :--filter=blob:none :https://github.com/folke/lazy.nvim.git :--branch=stable lazypath]))
(vim.opt.rtp:prepend lazypath)
@ -10,67 +10,67 @@
(local plug 1)
(local plugins [
:ThePrimeagen/vim-be-good
:ThePrimeagen/vim-be-good
:udayvir-singh/tangerine.nvim
:udayvir-singh/hibiscus.nvim
:udayvir-singh/tangerine.nvim
:udayvir-singh/hibiscus.nvim
:lambdalisue/nerdfont.vim
:lambdalisue/nerdfont.vim
{ plug :catppuccin/nvim
:name :catppuccin
:priority 1000 }
{ plug :catppuccin/nvim
:name :catppuccin
:priority 1000 }
:gelguy/wilder.nvim
:bkad/camelcasemotion
:lewis6991/gitsigns.nvim
:gelguy/wilder.nvim
:bkad/camelcasemotion
:lewis6991/gitsigns.nvim
{ plug :b0o/incline.nvim
:event [:BufReadPre] }
{ plug :b0o/incline.nvim
:event [:BufReadPre] }
:echasnovski/mini.nvim
:brenoprata10/nvim-highlight-colors
:echasnovski/mini.nvim
:brenoprata10/nvim-highlight-colors
{ plug :svampkorg/moody.nvim
:event [:ModeChanged :BufWinEnter :WinEnter]
:opts [] }
{ plug :svampkorg/moody.nvim
:event [:ModeChanged :BufWinEnter :WinEnter]
:opts [] }
{ plug :nvim-telescope/telescope-fzf-native.nvim
:build :make }
{ plug :nvim-telescope/telescope-fzf-native.nvim
:build :make }
{ plug :nvim-telescope/telescope.nvim
:tag :0.1.8
:dependencies [:nvim-lua/plenary.nvim] }
{ plug :nvim-telescope/telescope.nvim
:tag :0.1.8
:dependencies [:nvim-lua/plenary.nvim] }
{ plug :OXY2DEV/markview.nvim
:dependencies
[ :nvim-treesitter/nvim-treesitter
:nvim-tree/nvim-web-devicons ] }
{ plug :OXY2DEV/markview.nvim
:dependencies
[ :nvim-treesitter/nvim-treesitter
:nvim-tree/nvim-web-devicons ] }
{ plug :ThePrimeagen/harpoon
:branch :harpoon2
:dependencies [:nvim-lua/plenary.nvim] }
{ plug :ThePrimeagen/harpoon
:branch :harpoon2
:dependencies [:nvim-lua/plenary.nvim] }
{ plug :nvim-lualine/lualine.nvim
:dependencies [:nvim-tree/nvim-web-devicons] }
{ plug :nvim-lualine/lualine.nvim
:dependencies [:nvim-tree/nvim-web-devicons] }
{ plug :nvim-treesitter/nvim-treesitter
:build ":TSUpdate" }
{ plug :nvim-treesitter/nvim-treesitter
:build ":TSUpdate" }
{ plug :VonHeikemen/lsp-zero.nvim
:branch "v3.x"
:dependencies
[ :neovim/nvim-lspconfig
:williamboman/mason.nvim
:williamboman/mason-lspconfig.nvim
{ plug :VonHeikemen/lsp-zero.nvim
:branch "v3.x"
:dependencies
[ :neovim/nvim-lspconfig
:williamboman/mason.nvim
:williamboman/mason-lspconfig.nvim
:hrsh7th/nvim-cmp
:hrsh7th/cmp-nvim-lsp
:L3MON4D3/LuaSnip ]}
:hrsh7th/nvim-cmp
:hrsh7th/cmp-nvim-lsp
:L3MON4D3/LuaSnip ]}
{ plug :m4xshen/hardtime.nvim
:dependencies
[ :MunifTanjim/nui.nvim
:nvim-lua/plenary.nvim ] } ])
{ plug :m4xshen/hardtime.nvim
:dependencies
[ :MunifTanjim/nui.nvim
:nvim-lua/plenary.nvim ] } ])
(lazy.setup plugins)

View file

@ -9,15 +9,12 @@
(local mason-lspc (require :mason-lspconfig))
(mason-lspc.setup
{ :ensure-installed
[ :fennel-ls
:lua-language-server
:python-lsp-server
:ltex-ls
:zls
:rust-analyzer ]
{ :ensure-installed
[ :fennel-ls
:lua-language-server
:python-lsp-server ]
:automatic_installation true })
:automatic_installation true })
(local cmp (require :cmp))
(local cmp_action (lsp.cmp_action))
@ -26,39 +23,38 @@
(lsp.on_attach (fn [_ bufnr] lsp.default_keymaps {:buffer bufnr}))
(lspconfig.pylsp.setup
{ :setings { :pylsp { :plugins { :pycodestyle
{ :ignore [:W391 :E303 :E226]
:maxLineLength 120 } }}}})
{ :setings
{ :pylsp
{ :plugins
{ :pycodestyle
{ :ignore [:W391 :E303 :E226]
:maxLineLength 120 } }}}})
(lsp.setup)
(local fennel-ls lspconfig.fennel_ls)
(fennel-ls.setup {})
(local rustan lspconfig.rust_analyzer)
(rustan.setup {})
; (local fennel-ls lspconfig.fennel_ls)
; (fennel-ls.setup {})
(lspconfig.racket_langserver.setup {})
(lspconfig.zls.setup {})
(cmp.setup
{ :mapping
{ :<CR> (cmp.mapping.confirm {:select true})
{ :mapping
{ :<CR> (cmp.mapping.confirm {:select true})
:<Tab> (cmp.mapping
(fn [fallback]
(if (cmp.visible)
(cmp.select_next_item)
(fallback)) [:i :s] ))
:<Tab> (cmp.mapping
(fn [fallback]
(if (cmp.visible)
(cmp.select_next_item)
(fallback)) [:i :s] ))
:<S-Tab> (cmp.mapping
(fn [fallback]
(if (cmp.visible)
(cmp.select_prev_item)
(fallback)) [:i :s] ))
:<S-Tab> (cmp.mapping
(fn [fallback]
(if (cmp.visible)
(cmp.select_prev_item)
(fallback)) [:i :s] ))
:<C-Space> cmp.mapping.complete
:<C-Space> cmp.mapping.complete
:<C-f> cmp_action.luasnip_jump_forward
:<C-b> cmp_action.luasnip_jump_backward }})
:<C-f> cmp_action.luasnip_jump_forward
:<C-b> cmp_action.luasnip_jump_backward }})

View file

@ -1,11 +1,11 @@
(local lualine (require :lualine))
(lualine.setup
{ :options
{ :section_separators
{ :left :
:right : }
{ :options
{ :section_separators
{ :left :
:right : }
:component_separators
{ :left :
:right : }} })
:component_separators
{ :left :
:right : }} })

View file

@ -1,11 +1,11 @@
(local telescope (require :telescope))
(telescope.setup
{ :extansions
{ :fzf
{ :fuzzy true
:override_generic_sorter true
:override_file_sorter true
:case_mode :smart_case } }})
{ :extansions
{ :fzf
{ :fuzzy true
:override_generic_sorter true
:override_file_sorter true
:case_mode :smart_case } }})
(telescope.load_extension :fzf)

View file

@ -2,30 +2,25 @@
; (local parsers (require :nvim-treesitter.parsers))
(configs.setup
{ :ensure_installed
[ :c
:rust
:lua
:vim
:vimdoc
:query
:haskell
:go
:bash
:python
:fennel
:hyprlang ]
{ :ensure_installed
[ :c
:lua
:vim
:vimdoc
:query
:haskell
:go
:bash
:python
:fennel
:hyprlang ]
:sync_install false
:auto_install true
:sync_install false
:auto_install true
:highlight
{ :enable true }})
:highlight
{ :enable true }})
(vim.filetype.add
{ :pattern
{ :.*/hypr/.*%.conf :hyprlang }})
(vim.filetype.add
{ :pattern
{ :*.tex :latex }})
{ :pattern
{ :.*/hypr/.*%.conf :hyprlang }})

View file

@ -1,24 +1,24 @@
; (local wilder (require :wilder))
;
; (wilder.setup {
; :modes [":" "/" "?"]
; :modes [":" "/" "?"]
; })
;
; (wilder.set_option :renderer (wilder.renderer_mux {
; ":" (wilder.popupmenu_renderer {
; :highlighter wilder.basic_highlighter
; :left [ " " wilder.popupmenu_devicons ]
; :right [ " " wilder.popupmenu_scrollbar ]
; })
; ":" (wilder.popupmenu_renderer {
; :highlighter wilder.basic_highlighter
; :left [ " " wilder.popupmenu_devicons ]
; :right [ " " wilder.popupmenu_scrollbar ]
; })
;
; "/" (wilder.popupmenu_renderer {
; :highlighter wilder.basic_highlighter
; :left [ "" wilder.popupmenu_devicons ]
; :right [ "" wilder.popupmenu_scrollbar ]
; })
; "/" (wilder.popupmenu_renderer {
; :highlighter wilder.basic_highlighter
; :left [ "" wilder.popupmenu_devicons ]
; :right [ "" wilder.popupmenu_scrollbar ]
; })
; }))
;
; (wilder.set_option :renderer
; (wilder.popupmenu_renderer
; { :max_height :20%
; :min_width :100% }))
; (wilder.popupmenu_renderer
; { :max_height :20%
; :min_width :100% }))

View file

@ -1,26 +1,26 @@
; ████████╗██████╗ ██╗██╗ ██╗██╗ ██╗
; ╚══██╔══╝██╔══██╗██║╚██╗██╔╝╚██╗ ██╔╝
; ██║ ██████╔╝██║ ╚███╔╝ ╚████╔╝
; ██║ ██╔══██╗██║ ██╔██╗ ╚██╔╝
; ██║ ██║ ██║██║██╔╝ ██╗ ██║
; ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═
; ████████╗██████╗ ██╗██╗ ██╗██╗ ██╗
; ╚══██╔══╝██╔══██╗██║╚██╗██╔╝╚██╗ ██╔╝
; ██║ ██████╔╝██║ ╚███╔╝ ╚████╔╝
; ██║ ██╔══██╗██║ ██╔██╗ ╚██╔╝
; ██║ ██║ ██║██║██╔╝ ██╗ ██║
; ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═
; Listen up, you motherfuckers,
; Those Ivy League dopes, they wanna
; mock us. Tell 'em all this is war.
; And not fighting a war is for suckers.
; Listen up, you motherfuckers,
; Those Ivy League dopes, they wanna
; mock us. Tell 'em all this is war.
; And not fighting a war is for suckers.
; (import-macros {: g! : set!} :hibiscus.vim)
; When using neovide, use these settings
; (when vim.g.neovide (do
; (set! guifont "FiraCode Nerd Font:h14")
; (g! neovide_scale_factor 1.0)
; (g! neovide_refresh_rate 120)
; (g! neovide_refresh_rate_idle 5)
; (g! neovide_cursor_antialiasing true)
; (g! neovide_cursor_animate_in_insert_mode true)
; (g! neovide_cursor_vfx_mode "ripple")))
; (set! guifont "FiraCode Nerd Font:h14")
; (g! neovide_scale_factor 1.0)
; (g! neovide_refresh_rate 120)
; (g! neovide_refresh_rate_idle 5)
; (g! neovide_cursor_antialiasing true)
; (g! neovide_cursor_animate_in_insert_mode true)
; (g! neovide_cursor_vfx_mode "ripple")))
(require :plugins)

View file

@ -1,35 +1,2 @@
-- needed to fix deprecation warning
vim.tbl_islist = vim.islist
-- bootstrap tangerine and hibiscus in order to have fennel support
local function bootstrap(url, ref)
local name = url:gsub(".*/", "")
local path
path = vim.fn.stdpath("data") .. "/lazy/" .. name
vim.opt.rtp:prepend(path)
if vim.fn.isdirectory(path) == 0 then
print(name .. ": installing in data dir...")
vim.fn.system {"git", "clone", url, path}
if ref then
vim.fn.system {"git", "-C", path, "checkout", ref}
end
vim.cmd "redraw"
print(name .. ": finished installing")
end
end
bootstrap("https://github.com/udayvir-singh/tangerine.nvim")
bootstrap("https://github.com/udayvir-singh/hibiscus.nvim")
require "tangerine".setup {
compiler = {
verbose = false,
hooks = { "onsave", "oninit" }
}
}
require("plugins")
require("options")

7
lua/options/colors.lua Normal file
View file

@ -0,0 +1,7 @@
-- :fennel:1721474653
local espresso = require("catppuccin")
local color_overrides = {macchiato = {rosewater = "#F5B8AB", flamingo = "#F29D9D", pink = "#AD6FF7", mauve = "#FF8F40", red = "#E66767", maroon = "#EB788B", peach = "#FAB770", yellow = "#FACA64", green = "#70CF67", teal = "#4CD4BD", sky = "#61BDFF", sapphire = "#4BA8FA", blue = "#00BFFF", lavender = "#00BBCC", text = "#C1C9E6", subtext1 = "#A3AAC2", subtext0 = "#8E94AB", overlay2 = "#7D8296", overlay1 = "#676B80", overlay0 = "#464957", surface2 = "#3A3D4A", surface1 = "#2F313D", surface0 = "#1D1E29", base = "#0b0b0b", mantle = "#11111a", crust = "#191926"}}
local integrations = {cmp = true, gitsigns = true, treesitter = true, telescope = {enabled = true, style = "nvchad"}, mini = {enabled = true}}
espresso.setup({flavour = "macchiato", color_overrides = color_overrides, integrations = integrations})
do end (vim.opt)["background"] = "dark"
return vim.cmd("colorscheme catppuccin")

8
lua/options/init.lua Normal file
View file

@ -0,0 +1,8 @@
-- :fennel:1721140474
local dir = "options."
local function modul(name)
return (dir .. name)
end
require(modul("colors"))
require(modul("keybind"))
return require(modul("opts"))

26
lua/options/keybind.lua Normal file
View file

@ -0,0 +1,26 @@
-- :fennel:1721767243
vim.g["mapleader"] = " "
vim.keymap.set({"n"}, "<leader>tw", "<cmd>lua MiniTrailspace.trim()<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>fb", "<cmd>Telescope buffers<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>ff", "<cmd>Telescope find_files<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>fs", "<cmd>Telescope current_buffer_fuzzy_find<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>gs", "<cmd>Telescope git_status<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>fg", "<cmd>Telescope live_grep<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>fh", "<cmd>Telescope help_tags<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>fk", "<cmd>Telescope keymaps<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<leader>tt", "<cmd>terminal<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<C-Space>", "<cmd>bprev<CR>", {noremap = true, silent = true})
vim.keymap.set({"n"}, "w", "<Plug>CamelCaseMotion_w", {noremap = true, silent = true})
vim.keymap.set({"n"}, "b", "<Plug>CamelCaseMotion_b", {noremap = true, silent = true})
vim.keymap.set({"n"}, "e", "<Plug>CamelCaseMotion_e", {noremap = true, silent = true})
vim.keymap.set({"n"}, "ge", "<Plug>CamelCaseMotion_ge", {noremap = true, silent = true})
vim.keymap.set({"v"}, "J", ":m '>+1<CR>gv=gv", {noremap = true, silent = true})
vim.keymap.set({"v"}, "K", ":m '<-2<CR>gv=gv", {noremap = true, silent = true})
vim.keymap.set({"n"}, "J", "mzJ`z", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<C-d>", "<C-d>zz", {noremap = true, silent = true})
vim.keymap.set({"n"}, "<C-u>", "<C-u>zz", {noremap = true, silent = true})
vim.keymap.set({"n"}, "n", "nzzzv", {noremap = true, silent = true})
vim.keymap.set({"n"}, "N", "Nzzzv", {noremap = true, silent = true})
vim.keymap.set({"n", "v", "x"}, "<leader>y", "\"+y", {noremap = true, silent = true})
vim.keymap.set({"n", "v", "x"}, "<leader>Y", "\"+yy", {noremap = true, silent = true})
return vim.keymap.set({"n", "v", "x"}, "<leader>p", "\"+p", {noremap = true, silent = true})

43
lua/options/opts.lua Normal file
View file

@ -0,0 +1,43 @@
-- :fennel:1722704128
vim.opt["number"] = true
vim.opt["relativenumber"] = true
vim.opt["undofile"] = true
vim.opt["backup"] = false
vim.opt["autowrite"] = true
vim.opt["ignorecase"] = true
vim.opt["list"] = true
vim.opt["smartindent"] = false
vim.opt["splitright"] = true
vim.opt["splitkeep"] = "screen"
vim.opt["startofline"] = false
vim.opt["swapfile"] = false
vim.opt["termguicolors"] = true
vim.opt["wrap"] = false
vim.opt["backupcopy"] = "yes"
vim.opt["smarttab"] = false
vim.opt["tabstop"] = 4
vim.opt["softtabstop"] = 4
vim.opt["shiftwidth"] = 4
vim.opt["expandtab"] = false
vim.opt["compatible"] = false
vim.opt["showmatch"] = true
vim.opt["hlsearch"] = true
vim.opt["incsearch"] = true
vim.opt["autoindent"] = true
vim.opt["wildmode"] = "longest,list"
vim.opt["inccommand"] = "split"
vim.opt["mouse"] = "v"
vim.opt["mouse"] = "a"
vim.opt["ttyfast"] = true
vim.opt["cursorline"] = true
vim.opt["splitbelow"] = true
vim.opt["signcolumn"] = "yes:1"
vim.opt["showmode"] = false
vim.opt["cmdheight"] = 0
vim.cmd("syntax match keyword \"\\<lambda\\>\" conceal cchar=\206\187")
do end (vim.opt)["conceallevel"] = 1
local default_plugins = {["2html_plugin"] = "getscript", getscriptPlugin = "gzip", logipat = "netrw", netrwPlugin = "netrwSettings", netrwFileHandlers = "matchit", tar = "tarPlugin", rrhelper = "spellfile_plugin", vimball = "vimballPlugin", zip = "zipPlugin", tutor = "rplugin", syntax = "synmenu", optwin = "compiler", bugreport = "ftplugin"}
for _, plug in ipairs(default_plugins) do
vim.g[("loaded" .. plug)] = 1
end
return nil

View file

@ -0,0 +1,4 @@
-- :fennel:1721474653
vim.opt["termguicolors"] = true
local colorizer = require("nvim-highlight-colors")
return colorizer.setup()

3
lua/plugins/devicons.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721474653
local plug = require("nvim-web-devicons")
return plug.setup({"strict", true, "default", true, "color_icons", true, "override", {"zsh", {"icon", "", "color", "#428850", "cterm_color", "65", "name", "zsh"}}, "override_by_filename", {".gitignore", {"icon", "", "color", "#f1502f", "name", "gitignore"}}, "override_by_extension", {"log", {"icon", "", "color", "#81e043", "name", "Log"}}})

3
lua/plugins/gitsigns.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721566506
local gitsigns = require("gitsigns")
return gitsigns.setup({signs = {add = {text = "\226\150\141"}, change = {text = "\226\150\141"}, delete = {text = "\226\150\141"}, topdelete = {text = "\226\150\141"}, changedelete = {text = "\226\150\141"}, untracked = {text = "\226\150\141"}}, signcolumn = true, watch_gitdir = {follow_files = true}, attach_to_untracked = true, current_line_blame_opts = {virt_text = true, virt_text_pos = "eol", delay = 1000, ignore_whitespace = false}, current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>", sign_priority = 6, update_debounce = 100, status_formatter = nil, max_file_length = 40000, preview_config = {border = "single", style = "minimal", relative = "cursor", row = 0, col = 1}, current_line_blame = false, linehl = false, numhl = false, word_diff = false})

35
lua/plugins/harpoon.lua Normal file
View file

@ -0,0 +1,35 @@
-- :fennel:1721425793
local harpoon = require("harpoon")
harpoon.setup()
local function _1_()
return (harpoon.list):append()
end
vim.keymap.set({"n"}, "<leader>ha", _1_, {noremap = true, silent = true})
local function _2_()
return harpoon.ui.toggle_quick_menu(harpoon.list())
end
vim.keymap.set({"n"}, "<C-e>", _2_, {noremap = true, silent = true})
local function _3_()
return (harpoon.list):select(1)
end
vim.keymap.set({"n"}, "<C-h>", _3_, {noremap = true, silent = true})
local function _4_()
return (harpoon.list):select(2)
end
vim.keymap.set({"n"}, "<C-t>", _4_, {noremap = true, silent = true})
local function _5_()
return (harpoon.list):select(3)
end
vim.keymap.set({"n"}, "<C-n>", _5_, {noremap = true, silent = true})
local function _6_()
return (harpoon.list):select(4)
end
vim.keymap.set({"n"}, "<C-s>", _6_, {noremap = true, silent = true})
local function _7_()
return (harpoon.list):prev()
end
vim.keymap.set({"n"}, "<C-S-P>", _7_, {noremap = true, silent = true})
local function _8_()
return (harpoon.list):next()
end
return vim.keymap.set({"n"}, "<C-S-N>", _8_, {noremap = true, silent = true})

3
lua/plugins/hlchunk.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721474653
local hlchunk = require("hlchunk")
return hlchunk.setup({indent = {enable = true, chars = {".", ".", ".", "."}, style = {["#888888"] = "#666666", ["#444444"] = "#333333", ["#333333"] = "#333333"}}, blank = {enable = false}, chunk = {enable = false}, line_num = {style = "#ADBC9F", enable = false}})

3
lua/plugins/incline.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721474653
local incline = require("incline")
return incline.setup({highlight = {groups = {InclineNormal = {default = true, group = "lualine_a_normal"}, InclineNormalNC = {default = true, group = "Comment"}}}, window = {margin = {vertical = 0, horizontal = 1}}})

17
lua/plugins/init.lua Normal file
View file

@ -0,0 +1,17 @@
-- :fennel:1721499601
local dir = "plugins."
local function modul(name)
return (dir .. name)
end
require(modul("lazy"))
require(modul("devicons"))
require(modul("gitsigns"))
require(modul("harpoon"))
require(modul("lsp-zero"))
require(modul("lualine"))
require(modul("mini"))
require(modul("telescope"))
require(modul("treesitter"))
require(modul("wilder"))
require(modul("incline"))
return require(modul("colorizer"))

11
lua/plugins/lazy.lua Normal file
View file

@ -0,0 +1,11 @@
-- :fennel:1722759221
local lazypath = (vim.fn.stdpath("data") .. "/lazy/lazy.nvim")
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({"git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath})
else
end
do end (vim.opt.rtp):prepend(lazypath)
local lazy = require("lazy")
local plug = 1
local plugins = {"ThePrimeagen/vim-be-good", "udayvir-singh/tangerine.nvim", "udayvir-singh/hibiscus.nvim", "lambdalisue/nerdfont.vim", {[plug] = "catppuccin/nvim", name = "catppuccin", priority = 1000}, "gelguy/wilder.nvim", "bkad/camelcasemotion", "lewis6991/gitsigns.nvim", {[plug] = "b0o/incline.nvim", event = {"BufReadPre"}}, "echasnovski/mini.nvim", "brenoprata10/nvim-highlight-colors", {[plug] = "svampkorg/moody.nvim", event = {"ModeChanged", "BufWinEnter", "WinEnter"}, opts = {}}, {[plug] = "nvim-telescope/telescope-fzf-native.nvim", build = "make"}, {[plug] = "nvim-telescope/telescope.nvim", tag = "0.1.8", dependencies = {"nvim-lua/plenary.nvim"}}, {[plug] = "OXY2DEV/markview.nvim", dependencies = {"nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons"}}, {[plug] = "ThePrimeagen/harpoon", branch = "harpoon2", dependencies = {"nvim-lua/plenary.nvim"}}, {[plug] = "nvim-lualine/lualine.nvim", dependencies = {"nvim-tree/nvim-web-devicons"}}, {[plug] = "nvim-treesitter/nvim-treesitter", build = ":TSUpdate"}, {[plug] = "VonHeikemen/lsp-zero.nvim", branch = "v3.x", dependencies = {"neovim/nvim-lspconfig", "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "hrsh7th/nvim-cmp", "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip"}}, {[plug] = "m4xshen/hardtime.nvim", dependencies = {"MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim"}}}
return lazy.setup(plugins)

36
lua/plugins/lsp-zero.lua Normal file
View file

@ -0,0 +1,36 @@
-- :fennel:1721498140
local lsp = require("lsp-zero")
lsp.preset()
local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup(lsp.nvim_lua_ls())
local mason = require("mason")
mason.setup()
local mason_lspc = require("mason-lspconfig")
mason_lspc.setup({["ensure-installed"] = {"fennel-ls", "lua-language-server", "python-lsp-server"}, automatic_installation = true})
local cmp = require("cmp")
local cmp_action = lsp.cmp_action()
local function _1_(_, bufnr)
do local _ = lsp.default_keymaps end
return {buffer = bufnr}
end
lsp.on_attach(_1_)
lspconfig.pylsp.setup({setings = {pylsp = {plugins = {pycodestyle = {ignore = {"W391", "E303", "E226"}, maxLineLength = 120}}}}})
lsp.setup()
lspconfig.racket_langserver.setup({})
local function _2_(fallback)
if cmp.visible() then
cmp.select_next_item()
else
fallback()
end
return {"i", "s"}
end
local function _4_(fallback)
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
return {"i", "s"}
end
return cmp.setup({mapping = {["<CR>"] = cmp.mapping.confirm({select = true}), ["<Tab>"] = cmp.mapping(_2_), ["<S-Tab>"] = cmp.mapping(_4_), ["<C-Space>"] = cmp.mapping.complete, ["<C-f>"] = cmp_action.luasnip_jump_forward, ["<C-b>"] = cmp_action.luasnip_jump_backward}})

3
lua/plugins/lualine.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721474653
local lualine = require("lualine")
return lualine.setup({options = {section_separators = {left = "\238\130\188", right = "\238\130\186"}, component_separators = {left = "\238\130\189", right = "\238\130\187"}}})

11
lua/plugins/mini.lua Normal file
View file

@ -0,0 +1,11 @@
-- :fennel:1721140474
local cursorword = require("mini.cursorword")
cursorword.setup()
local trailspace = require("mini.trailspace")
trailspace.setup()
local pairs = require("mini.pairs")
pairs.setup()
local clue = require("mini.clue")
clue.setup()
local surround = require("mini.surround")
return surround.setup()

3
lua/plugins/oil.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721140474
local oil = require("oil")
return oil.setup()

View file

@ -0,0 +1,4 @@
-- :fennel:1721500726
local telescope = require("telescope")
telescope.setup({extansions = {fzf = {fuzzy = true, override_generic_sorter = true, override_file_sorter = true, case_mode = "smart_case"}}})
return telescope.load_extension("fzf")

View file

@ -0,0 +1,4 @@
-- :fennel:1721474653
local configs = require("nvim-treesitter.configs")
configs.setup({ensure_installed = {"c", "lua", "vim", "vimdoc", "query", "haskell", "go", "bash", "python", "fennel", "hyprlang"}, auto_install = true, highlight = {enable = true}, sync_install = false})
return vim.filetype.add({pattern = {[".*/hypr/.*%.conf"] = "hyprlang"}})

1
lua/plugins/wilder.lua Normal file
View file

@ -0,0 +1 @@
-- :fennel:1721497941

3
lua/tangerine_vimrc.lua Normal file
View file

@ -0,0 +1,3 @@
-- :fennel:1721567155
require("plugins")
return require("options")