mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-24 18:01:02 +01:00
fix: neovim
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
gopls
|
||||
pyright
|
||||
rust-analyzer
|
||||
cargo # rust package manager
|
||||
|
||||
#-- tree-sitter --#
|
||||
tree-sitter
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user