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 gopls
pyright pyright
rust-analyzer rust-analyzer
cargo # rust package manager
#-- tree-sitter --# #-- tree-sitter --#
tree-sitter tree-sitter

View File

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

View File

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

View File

@@ -18,7 +18,7 @@ package({
}) })
-- -- file tree sidebar
package({ package({
'nvim-neo-tree/neo-tree.nvim', 'nvim-neo-tree/neo-tree.nvim',
dependencies = { dependencies = {
@@ -67,6 +67,14 @@ package({
{ source = "git_status", display_name = " 󰊢 Git " }, { 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 ... -- Other options ...
}) })
end end