Merge remote-tracking branch 'origin/nixos' into nixos
This commit is contained in:
commit
05927d1ae6
9 changed files with 96 additions and 34 deletions
|
|
@ -316,5 +316,21 @@ with builtins;
|
|||
cmd = [ "ConformInfo" "Format" ];
|
||||
conf = readFile ./lua/conform.lua;
|
||||
}
|
||||
{
|
||||
plugin = neogen;
|
||||
keys = [
|
||||
{ key = "<leader>cg"; cmd = "<cmd>Neogen<cr>"; desc = "Test"; }
|
||||
];
|
||||
opts = {
|
||||
languages = {
|
||||
python = {
|
||||
template = {
|
||||
annotation_convention = "reST";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
cmd = [ "Neogen" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ local on_attach_def = function(client, bufnr)
|
|||
function()
|
||||
require("telescope.builtin").lsp_type_definitions({ reuse_win = true })
|
||||
end,
|
||||
"Goto type defininition",
|
||||
"Goto type definition",
|
||||
},
|
||||
r = { "<cmd>Telescope lsp_references<cr>", "Goto references" },
|
||||
D = { vim.lsp.buf.declaration, "Goto declaration" },
|
||||
|
|
@ -129,7 +129,6 @@ local servers = {
|
|||
"gopls",
|
||||
"nil_ls",
|
||||
"nixd",
|
||||
"pylsp",
|
||||
"ruff_lsp",
|
||||
"typst_lsp",
|
||||
}
|
||||
|
|
@ -137,6 +136,18 @@ for _, lsp in ipairs(servers) do
|
|||
lspconfig_setup(lsp, {})
|
||||
end
|
||||
|
||||
lspconfig_setup("pylsp", {
|
||||
settings = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
rope_autoimport = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
lspconfig_setup("rust_analyzer", {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ with builtins;
|
|||
require('nvim-treesitter.configs').setup(final_opts)
|
||||
'';
|
||||
dependencies = [
|
||||
{ plugin = nvim-ts-context-commentstring; }
|
||||
{ plugin = nvim-treesitter-textobjects; }
|
||||
{ plugin = nvim-ts-context-commentstring; opts = { }; }
|
||||
];
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue