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 >>>
|
-- lsp_signature >>>
|
||||||
M.signature = function()
|
M.signature = function()
|
||||||
cfg = {
|
require "lsp_signature".setup({
|
||||||
toggle_key = '<M-x>'
|
toggle_key = '<M-x>'
|
||||||
}
|
})
|
||||||
require "lsp_signature".setup(cfg)
|
|
||||||
end -- <<<
|
end -- <<<
|
||||||
|
|
||||||
-- lspinstall >>>
|
-- 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)
|
||||||
cmp.setup.cmdline('?', search_config)
|
cmp.setup.cmdline('?', search_config)
|
||||||
|
|
||||||
|
@ -204,9 +203,8 @@ M.cmp = function()
|
||||||
cmp.setup.cmdline(':', {
|
cmp.setup.cmdline(':', {
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'path' }
|
{ name = 'path' },
|
||||||
}, {
|
{ name = 'cmdline' },
|
||||||
{ name = 'cmdline' }
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
end -- <<<
|
end -- <<<
|
||||||
|
@ -256,7 +254,7 @@ M.lspconfig = function()
|
||||||
|
|
||||||
-- cmp things >>>
|
-- cmp things >>>
|
||||||
local capabilities
|
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())
|
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
end
|
end
|
||||||
-- <<<
|
-- <<<
|
||||||
|
|
|
@ -52,7 +52,9 @@ return require('packer').startup({function()
|
||||||
use { -- tokyonight.nvim: tokyonight theme
|
use { -- tokyonight.nvim: tokyonight theme
|
||||||
'folke/tokyonight.nvim',
|
'folke/tokyonight.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
-- vim.g.onedark_transparent_background = true
|
vim.g.tokyonight_style = "night"
|
||||||
|
vim.g.tokyonight_italic_functions = true
|
||||||
|
vim.g.tokyonight_sidebars = { "nvimtree", "qf", "vista_kind", "terminal", "packer" }
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
au ColorScheme tokyonight hi TabLine gui=none guibg='#1D202F' guifg='#565F89' " all tabs color
|
au ColorScheme tokyonight hi TabLine gui=none guibg='#1D202F' guifg='#565F89' " all tabs color
|
||||||
au ColorScheme tokyonight hi TabLineSel guibg='#24283B' guifg='#C0CAF5' " Highlighted tab color
|
au ColorScheme tokyonight hi TabLineSel guibg='#24283B' guifg='#C0CAF5' " Highlighted tab color
|
||||||
|
@ -221,7 +223,8 @@ return require('packer').startup({function()
|
||||||
use { -- virtual-text: Print Variable names while debugging
|
use { -- virtual-text: Print Variable names while debugging
|
||||||
'theHamsta/nvim-dap-virtual-text',
|
'theHamsta/nvim-dap-virtual-text',
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-dap-virtual-text").setup()
|
-- calling this with a parameter to keep lua language server from complaining
|
||||||
|
require("nvim-dap-virtual-text").setup({context_commentstring = {enable = true,}})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- nvim-dap-ui: a UI for nvim-dap
|
use { -- nvim-dap-ui: a UI for nvim-dap
|
||||||
|
@ -310,6 +313,16 @@ return require('packer').startup({function()
|
||||||
-- use { -- targets.vim: fix ci' and other things to work right
|
-- use { -- targets.vim: fix ci' and other things to work right
|
||||||
-- 'wellle/targets.vim',
|
-- 'wellle/targets.vim',
|
||||||
-- }
|
-- }
|
||||||
|
use { -- nvim-tree: File explorer
|
||||||
|
'kyazdani42/nvim-tree.lua',
|
||||||
|
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||||
|
tag = 'nightly',
|
||||||
|
config = function()
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
diagnostics = { enable = true, },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
-- Conveniences
|
-- Conveniences
|
||||||
use { -- sort motion: (gs)
|
use { -- sort motion: (gs)
|
||||||
|
@ -491,10 +504,14 @@ return require('packer').startup({function()
|
||||||
-- }
|
-- }
|
||||||
end,
|
end,
|
||||||
config = {
|
config = {
|
||||||
|
-- Floating window
|
||||||
display = { open_fn = require('packer.util').float },
|
display = { open_fn = require('packer.util').float },
|
||||||
-- Move to lua dir so impatient.nvim can cache it
|
-- Move to lua dir so impatient.nvim can cache it
|
||||||
compile_path = vim.fn.stdpath('config')..'/lua/packer_compiled.lua',
|
compile_path = vim.fn.stdpath('config')..'/lua/packer_compiled.lua',
|
||||||
|
-- Don't ask before removing plugins
|
||||||
|
autoremove = true,
|
||||||
}})
|
}})
|
||||||
|
|
||||||
-- vim command to align all plugin descriptions: select all plugins in visual line, :'<,'>Align \(.\+use { -- .\+: \+\)\@<=[^ ][^:]\+$
|
-- how to align all plugin descriptions: select all plugins in visual line, :'<,'>Align \(.\+use { -- .\+: \+\)\@<=[^ ][^:]\+$
|
||||||
|
|
||||||
-- vim:fdm=marker:fmr={,}:fdl=1:expandtab:tabstop=3:sw=3
|
-- vim:fdm=marker:fmr={,}:fdl=1:expandtab:tabstop=3:sw=3
|
||||||
|
|
Loading…
Add table
Reference in a new issue