diff --git a/nvim/.config/nvim/fnl/init.fnl b/nvim/.config/nvim/fnl/init.fnl index ca89c90..0842c46 100644 --- a/nvim/.config/nvim/fnl/init.fnl +++ b/nvim/.config/nvim/fnl/init.fnl @@ -12,6 +12,7 @@ `(xpcall #,f #(a.println (fennel.traceback $1)))) + (when (vim.fn.has "termguicolors") (se termguicolors true)) @@ -21,7 +22,11 @@ (make-errors-epic (require "plugins.lsp")) (make-errors-epic (require "keybinds")) -(make-errors-epic (require "smart-compe-conjure")) + +;(se runtimepath (.. vim.o.runtimepath ",/home/leon/coding/projects/kbd-vim")) + +; TODO +;(make-errors-epic (require "smart-compe-conjure")) ; Basic setup --------------------------------------- foldstart @@ -53,7 +58,7 @@ (se smartindent true) (se expandtab true) (se wrap false) -(se completeopt "longest,menuone,noselect") +(se completeopt "menuone,noselect") (se laststatus 2) (se showmode true) (se splitbelow true) @@ -61,6 +66,7 @@ (se mouse "a") (se shell "bash") (se background "dark") +;(se completeopt "longest,menuone,noselect") (vim-let &t_ut "") diff --git a/nvim/.config/nvim/fnl/plugins.fnl b/nvim/.config/nvim/fnl/plugins.fnl index a5c5650..8f7ee40 100644 --- a/nvim/.config/nvim/fnl/plugins.fnl +++ b/nvim/.config/nvim/fnl/plugins.fnl @@ -4,6 +4,7 @@ (packer-use "/home/leon/coding/projects/nvim-gehzu" {} + :elkowar/kmonad.vim {} :gruvbox-community/gruvbox {:opt false :config #(vim.cmd "colorscheme gruvbox")} @@ -37,6 +38,9 @@ :glepnir/galaxyline.nvim {:mod "plugins.galaxyline" :after "gruvbox"} + + ;:gwimm/lililine.nvim {:after "gruvbox"} + :akinsho/nvim-bufferline.lua {:mod "plugins.bufferline"} :sindrets/diffview.nvim {:mod "plugins.diffview"} diff --git a/nvim/.config/nvim/fnl/plugins/compe.fnl b/nvim/.config/nvim/fnl/plugins/compe.fnl index 25daa20..fe647dc 100644 --- a/nvim/.config/nvim/fnl/plugins/compe.fnl +++ b/nvim/.config/nvim/fnl/plugins/compe.fnl @@ -1,24 +1,24 @@ (module plugins.compe {autoload {compe compe}}) -;(compe.setup - ;{:enabled true - ;:autocomplete false - ;:debug false - ;:min_length 1 - ;:preselect "enable" - ;:throttle_time 80 - ;:source_timeout 200 - ;:incomplete_delay 400 - ;:max_abbr_width 100 - ;:max_kind_width 100 - ;:max_menu_width 100 - ;:documentation true - ;:source {:path true - ;:buffer true - ;:calc true - ;:nvim_lsp true - ;:nvim_lua true - ;:vsnip false - ;:conjure true}}) +(compe.setup + {:enabled true + :autocomplete false + :debug false + :min_length 1 + :preselect "enable" + :throttle_time 80 + :source_timeout 200 + :incomplete_delay 400 + :max_abbr_width 100 + :max_kind_width 100 + :max_menu_width 100 + :documentation true + :source {:path true + :buffer true + :calc true + :nvim_lsp true + :nvim_lua true + :vsnip false + :conjure true}}) diff --git a/nvim/.config/nvim/fnl/plugins/lsp.fnl b/nvim/.config/nvim/fnl/plugins/lsp.fnl index cb3b711..2fb9670 100644 --- a/nvim/.config/nvim/fnl/plugins/lsp.fnl +++ b/nvim/.config/nvim/fnl/plugins/lsp.fnl @@ -14,14 +14,14 @@ (do (utils.highlight "LspReferenceRead" {:gui "underline"}) (utils.highlight "LspReferenceText" {:gui "underline"}) - (utils.highlight "LspReferenceWrite" {:gui "underline"})))) - ;(vim.api.nvim_exec - ;"augroup lsp_document_highlight - ;autocmd! * - ;autocmd CursorHold lua vim.lsp.buf.document_highlight() - ;autocmd CursorMoved lua vim.lsp.buf.clear_references() - ;augroup END" - ;false)))) + (utils.highlight "LspReferenceWrite" {:gui "underline"}) + (vim.api.nvim_exec + "augroup lsp_document_highlight + autocmd! * + autocmd CursorHold lua vim.lsp.buf.document_highlight() + autocmd CursorMoved lua vim.lsp.buf.clear_references() + augroup END" + false)))) (fn better_root_pattern [patterns except-patterns]