Update nixvim config
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{...}: {
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./keymaps.nix
|
||||
];
|
||||
|
||||
programs.nixvim.plugins = {
|
||||
plugins = {
|
||||
lspkind.enable = true;
|
||||
|
||||
cmp-nvim-lsp-signature-help.enable = true;
|
||||
@@ -14,9 +14,9 @@
|
||||
autoLoad = true;
|
||||
|
||||
settings.sources = [
|
||||
{name = "nvim_lsp";}
|
||||
{name = "nvim_lsp_signature_help";}
|
||||
{name = "path";}
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "nvim_lsp_signature_help"; }
|
||||
{ name = "path"; }
|
||||
];
|
||||
|
||||
settings.mapping = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{...}: {
|
||||
programs.nixvim.keymaps = [
|
||||
{ ... }: {
|
||||
keymaps = [
|
||||
{
|
||||
key = "grd";
|
||||
action = "<cmd>Telescope lsp_definitions<CR>";
|
||||
|
||||
@@ -5,14 +5,13 @@
|
||||
./cmp
|
||||
];
|
||||
|
||||
programs.nixvim.plugins = {
|
||||
plugins = {
|
||||
lualine.enable = true;
|
||||
|
||||
web-devicons.enable = true;
|
||||
|
||||
treesitter = {
|
||||
enable = true;
|
||||
folding = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,38 +1,36 @@
|
||||
{ ... }: {
|
||||
programs.nixvim = {
|
||||
dependencies.rust-analyzer.enable = true;
|
||||
dependencies.rust-analyzer.enable = true;
|
||||
|
||||
lsp = {
|
||||
inlayHints.enable = true;
|
||||
servers = {
|
||||
"*" = {
|
||||
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
|
||||
config.root_markers = [
|
||||
".git"
|
||||
];
|
||||
};
|
||||
clangd = {
|
||||
enable = true;
|
||||
config.root_markers = [
|
||||
"compile_commands.json"
|
||||
];
|
||||
};
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
};
|
||||
rnix.enable = true;
|
||||
lsp = {
|
||||
inlayHints.enable = true;
|
||||
servers = {
|
||||
"*" = {
|
||||
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
|
||||
config.root_markers = [
|
||||
".git"
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>e";
|
||||
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
|
||||
options.desc = "Open Diagnostics";
|
||||
}
|
||||
];
|
||||
clangd = {
|
||||
enable = true;
|
||||
config.root_markers = [
|
||||
"compile_commands.json"
|
||||
];
|
||||
};
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
};
|
||||
rnix.enable = true;
|
||||
};
|
||||
|
||||
plugins.lspconfig.enable = true;
|
||||
plugins.clangd-extensions.enable = true;
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>e";
|
||||
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
|
||||
options.desc = "Open Diagnostics";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
plugins.lspconfig.enable = true;
|
||||
plugins.clangd-extensions.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{...}: {
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./keymaps.nix
|
||||
];
|
||||
programs.nixvim.dependencies.ripgrep.enable = true;
|
||||
dependencies.ripgrep.enable = true;
|
||||
|
||||
programs.nixvim.plugins.telescope = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions.file-browser = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{...}: {
|
||||
programs.nixvim.keymaps = [
|
||||
{ ... }: {
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>sf";
|
||||
action = "<cmd>Telescope find_files<CR>";
|
||||
|
||||
Reference in New Issue
Block a user