nvim: Configuration cleanup
This commit is contained in:
parent
fff2fd85e7
commit
dcedc22636
3 changed files with 7 additions and 4 deletions
|
@ -13,9 +13,6 @@
|
|||
repl (require :nifoc.repl)
|
||||
formatting (require :nifoc.formatting)
|
||||
nifoc-lsp (require :nifoc.lsp)]
|
||||
(fn map-entry [key cmd opts]
|
||||
(vim.tbl_extend :keep {1 key 2 cmd} opts))
|
||||
|
||||
(fn mod.setup []
|
||||
(keymap.set :n :<space> :<nop> {:noremap true})
|
||||
(set vim.g.mapleader " ")
|
||||
|
|
|
@ -53,5 +53,10 @@
|
|||
(fn mod.lsp-enabled? []
|
||||
(if (buffer-variable-exists? :nifoc_lsp_enabled) "" ""))
|
||||
|
||||
(fn mod.extension-telescope []
|
||||
{:filetypes [:TelescopePrompt]
|
||||
:sections {:lualine_a [(fn []
|
||||
:Telescope)]}})
|
||||
|
||||
mod)
|
||||
|
||||
|
|
|
@ -26,5 +26,6 @@
|
|||
ns.fixer-enabled?
|
||||
ns.spell-enabled?]
|
||||
:lualine_y [ns.current-line-percent]
|
||||
:lualine_z [ns.line-column]}}))
|
||||
:lualine_z [ns.line-column]}
|
||||
:extensions [:toggleterm (ns.extension-telescope)]}))
|
||||
|
||||
|
|
Loading…
Reference in a new issue