Merge remote-tracking branch 'origin/nixos' into nixos

This commit is contained in:
Moritz Böhme 2023-12-08 16:27:02 +01:00
commit 05927d1ae6
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
9 changed files with 96 additions and 34 deletions

View file

@ -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" ];
}
];
}

View file

@ -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"] = {

View file

@ -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 = { }; }
];
}
{