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