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