nvim: add nvim-tree, enable night theme (rather than storm)
This commit is contained in:
parent
7ad7aeaeaa
commit
57bd63e948
2 changed files with 29 additions and 14 deletions
|
@ -2,10 +2,9 @@ local M = {}
|
|||
|
||||
-- lsp_signature >>>
|
||||
M.signature = function()
|
||||
cfg = {
|
||||
require "lsp_signature".setup({
|
||||
toggle_key = '<M-x>'
|
||||
}
|
||||
require "lsp_signature".setup(cfg)
|
||||
})
|
||||
end -- <<<
|
||||
|
||||
-- lspinstall >>>
|
||||
|
@ -196,7 +195,7 @@ M.cmp = function()
|
|||
}
|
||||
}
|
||||
|
||||
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||
-- Use buffer source for `/` and `?`
|
||||
cmp.setup.cmdline('/', search_config)
|
||||
cmp.setup.cmdline('?', search_config)
|
||||
|
||||
|
@ -204,9 +203,8 @@ M.cmp = function()
|
|||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
{ name = 'path' },
|
||||
{ name = 'cmdline' },
|
||||
})
|
||||
})
|
||||
end -- <<<
|
||||
|
@ -256,7 +254,7 @@ M.lspconfig = function()
|
|||
|
||||
-- cmp things >>>
|
||||
local capabilities
|
||||
if cmp ~= nil then -- only load this if cmp is loaded
|
||||
if packer_plugins["nvim-cmp"] and packer_plugins["nvim-cmp"].loaded then -- only load this if cmp is loaded
|
||||
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||
end
|
||||
-- <<<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue