Some random changes
This commit is contained in:
parent
3dfaa747ca
commit
4bd0009ae6
@ -21,10 +21,7 @@
|
|||||||
:auto_install true
|
:auto_install true
|
||||||
:highlight { :enable true
|
:highlight { :enable true
|
||||||
:additional_vim_regex_highlighting false }
|
:additional_vim_regex_highlighting false }
|
||||||
:indent { :enable true }
|
:indent { :enable true }))
|
||||||
:rainbow { :enable true
|
|
||||||
:extended_mode true
|
|
||||||
:max_file_lines nil }))
|
|
||||||
|
|
||||||
;; nightfox.nvim (colorscheme)
|
;; nightfox.nvim (colorscheme)
|
||||||
(use! :EdenEast/nightfox.nvim
|
(use! :EdenEast/nightfox.nvim
|
||||||
@ -77,6 +74,7 @@
|
|||||||
(bind! :n :<leader>fm fzf.man_pages)
|
(bind! :n :<leader>fm fzf.man_pages)
|
||||||
(bind! :n :<leader>fe fzf.diagnostics_document)
|
(bind! :n :<leader>fe fzf.diagnostics_document)
|
||||||
(bind! :n :<leader>fE fzf.diagnostics_workspace)
|
(bind! :n :<leader>fE fzf.diagnostics_workspace)
|
||||||
|
(bind! :n :<leader>d fzf.loclist)
|
||||||
(bind! :n :<leader>fp fzf.spell_suggest)
|
(bind! :n :<leader>fp fzf.spell_suggest)
|
||||||
(bind! :n :<leader>i fzf.files)
|
(bind! :n :<leader>i fzf.files)
|
||||||
(bind! :n :z= fzf.spell_suggest)
|
(bind! :n :z= fzf.spell_suggest)
|
||||||
@ -191,6 +189,10 @@
|
|||||||
:dcampos/cmp-snippy ]
|
:dcampos/cmp-snippy ]
|
||||||
:config (module-fn! :plugin.cmp :configure))
|
:config (module-fn! :plugin.cmp :configure))
|
||||||
|
|
||||||
|
;; guess style from buffer
|
||||||
|
(use! :NMAC427/guess-indent.nvim
|
||||||
|
:config #(setup! :guess-indent :auto_cmd true))
|
||||||
|
|
||||||
;; lspconfig
|
;; lspconfig
|
||||||
(use! :neovim/nvim-lspconfig
|
(use! :neovim/nvim-lspconfig
|
||||||
:after [ :cmp-nvim-lsp
|
:after [ :cmp-nvim-lsp
|
||||||
|
@ -59,8 +59,6 @@
|
|||||||
{ :name "treesitter" :priority 1 :group 2 }
|
{ :name "treesitter" :priority 1 :group 2 }
|
||||||
{ :name "buffer" :priority 0 :group 3 }
|
{ :name "buffer" :priority 0 :group 3 }
|
||||||
{ :name "path" :priority 0 :group 4 }]
|
{ :name "path" :priority 0 :group 4 }]
|
||||||
:view {
|
|
||||||
:entries { :name "custom" :selection_order "near_cursor" }}
|
|
||||||
:sorting {
|
:sorting {
|
||||||
:priority_weight 2
|
:priority_weight 2
|
||||||
:comparators [
|
:comparators [
|
||||||
|
4
init.fnl
4
init.fnl
@ -59,13 +59,13 @@
|
|||||||
;; Remove trailing whitespace
|
;; Remove trailing whitespace
|
||||||
(fn remove-trailing-whitespace []
|
(fn remove-trailing-whitespace []
|
||||||
"Remove trailing whitespace from the whole file."
|
"Remove trailing whitespace from the whole file."
|
||||||
(let [res (pcall vim.cmd "%s/ \\+$//gc")]
|
(let [res (pcall vim.cmd "%s/ \\+$//")]
|
||||||
(vim.cmd.nohlsearch)
|
(vim.cmd.nohlsearch)
|
||||||
(when (not res)
|
(when (not res)
|
||||||
(print "File is clean"))))
|
(print "File is clean"))))
|
||||||
(vim.api.nvim_create_user_command :RemoveTrailingWhitespace
|
(vim.api.nvim_create_user_command :RemoveTrailingWhitespace
|
||||||
remove-trailing-whitespace {})
|
remove-trailing-whitespace {})
|
||||||
(bind! :n :<leader>ws remove-trailing-whitespace)
|
(hook! [ :BufWritePre ] "*" remove-trailing-whitespace)
|
||||||
|
|
||||||
;; Spell keybindings
|
;; Spell keybindings
|
||||||
(bind! :n :<leader>l (fn []
|
(bind! :n :<leader>l (fn []
|
||||||
|
Reference in New Issue
Block a user