1
0
Fork 0

nvim: Configuration cleanup

This commit is contained in:
Daniel Kempkens 2022-05-07 23:31:42 +02:00
parent fff2fd85e7
commit dcedc22636
3 changed files with 7 additions and 4 deletions

View file

@ -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 " ")

View file

@ -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)

View file

@ -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)]}))