fix: neovim

This commit is contained in:
Ryan Yin
2023-07-11 02:32:26 +08:00
parent 7cc49c29f1
commit 588cbabbc2
4 changed files with 14 additions and 21 deletions

View File

@@ -65,6 +65,7 @@
gopls
pyright
rust-analyzer
cargo # rust package manager
#-- tree-sitter --#
tree-sitter

View File

@@ -96,16 +96,6 @@ function config.nvim_lsp()
nvim_lsp.pyright.setup({
on_attach = on_attach(),
capabilities = capabilities,
settings = {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "workspace",
useLibraryCodeForTypes = true,
typeCheckingMode = "off",
},
},
},
})
--sumneko_lua

View File

@@ -15,22 +15,16 @@ function config.dashboard()
shortcut = {
{ desc = ' Update', group = '@property', action = 'Lazy update', key = 'u' },
{
desc = ' Files',
desc = ' Find Files',
group = 'Label',
action = 'Telescope find_files',
key = 'f',
},
{
desc = ' Apps',
desc = '󱘎 File Tree',
group = 'DiagnosticHint',
action = 'Telescope app',
key = 'a',
},
{
desc = ' dotfiles',
group = 'Number',
action = 'Telescope dotfiles',
key = 'd',
action = 'Neotree',
key = 't',
},
},
},

View File

@@ -18,7 +18,7 @@ package({
})
--
-- file tree sidebar
package({
'nvim-neo-tree/neo-tree.nvim',
dependencies = {
@@ -67,6 +67,14 @@ package({
{ source = "git_status", display_name = " 󰊢 Git " },
},
},
filesystem = {
filtered_items = {
visible = true, -- when true, they will just be displayed differently than normal items
hide_dotfiles = false,
hide_gitignored = false,
},
},
-- Other options ...
})
end