mirror of
https://github.com/FabricSoul/nixos-configs.git
synced 2026-02-03 22:26:24 -05:00
update: config
This commit is contained in:
parent
ebeb37f61f
commit
37cf8c18c3
1 changed files with 62 additions and 24 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
update_in_insert = true;
|
update_in_insert = true;
|
||||||
severity_sort = true;
|
severity_sort = true;
|
||||||
|
|
||||||
# NOTE: Opt-in with 0.11
|
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
enable = true;
|
enable = true;
|
||||||
severity.min = "warn";
|
severity.min = "warn";
|
||||||
|
|
@ -111,7 +110,9 @@
|
||||||
web-devicons.enable = true;
|
web-devicons.enable = true;
|
||||||
nix.enable = true;
|
nix.enable = true;
|
||||||
bufferline.enable = false;
|
bufferline.enable = false;
|
||||||
lualine.enable = true;
|
lualine = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
luasnip.enable = true;
|
luasnip.enable = true;
|
||||||
yanky = {
|
yanky = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -338,6 +339,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
servers = {
|
servers = {
|
||||||
|
clangd.enable = true;
|
||||||
ts_ls.enable = true;
|
ts_ls.enable = true;
|
||||||
eslint.enable = true;
|
eslint.enable = true;
|
||||||
templ.enable = true;
|
templ.enable = true;
|
||||||
|
|
@ -375,6 +377,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
elixirls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
installCargo = true;
|
installCargo = true;
|
||||||
|
|
@ -389,6 +394,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
zls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cmp = {
|
cmp = {
|
||||||
|
|
@ -422,31 +430,56 @@
|
||||||
extraPlugins = [
|
extraPlugins = [
|
||||||
];
|
];
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
vim.filetype.add({
|
vim.cmd [[
|
||||||
extension = {
|
highlight Normal guibg=none
|
||||||
ldtk = "json",
|
highlight Normal ctermbg=none
|
||||||
},
|
highlight NonText guibg=none
|
||||||
})
|
highlight NonText ctermbg=none
|
||||||
vim.lsp.inlay_hint.enable(true)
|
highlight NormalFloat guibg=none
|
||||||
vim.filetype.add({
|
highlight NormalFloat ctermbg=none
|
||||||
extension = {
|
highlight FloatBorder guibg=none
|
||||||
cob = "cobweb",
|
highlight FloatBorder ctermbg=none
|
||||||
cobweb = "cobweb",
|
highlight Pmenu guibg=none
|
||||||
},
|
highlight Pmenu ctermbg=none
|
||||||
})
|
highlight PmenuSel guibg=none
|
||||||
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
highlight PmenuSel ctermbg=none
|
||||||
parser_config.cobweb = {
|
highlight TelescopeNormal guibg=none
|
||||||
install_info = {
|
highlight TelescopeNormal ctermbg=none
|
||||||
url = "~/tree-sitter-cobweb", -- local path or git repo
|
highlight TelescopeBorder guibg=none
|
||||||
files = {"src/parser.c"},
|
highlight TelescopeBorder ctermbg=none
|
||||||
generate_requires_npm = false,
|
highlight TermNormal guibg=none
|
||||||
requires_generate_from_grammar = false,
|
highlight TermNormal ctermbg=none
|
||||||
},
|
highlight TermFloat guibg=none
|
||||||
filetype = "cobweb",
|
highlight TermFloat ctermbg=none
|
||||||
}
|
highlight SignColumn guibg=none
|
||||||
|
]]
|
||||||
|
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
ldtk = "json",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
vim.lsp.inlay_hint.enable(true)
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
cob = "cobweb",
|
||||||
|
cobweb = "cobweb",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
||||||
|
parser_config.cobweb = {
|
||||||
|
install_info = {
|
||||||
|
url = "~/tree-sitter-cobweb", -- local path or git repo
|
||||||
|
files = {"src/parser.c"},
|
||||||
|
generate_requires_npm = false,
|
||||||
|
requires_generate_from_grammar = false,
|
||||||
|
},
|
||||||
|
filetype = "cobweb",
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
opts = {
|
opts = {
|
||||||
|
laststatus = 0;
|
||||||
relativenumber = true;
|
relativenumber = true;
|
||||||
number = true;
|
number = true;
|
||||||
tabstop = 2;
|
tabstop = 2;
|
||||||
|
|
@ -612,6 +645,11 @@
|
||||||
key = "<leader>p";
|
key = "<leader>p";
|
||||||
action = "\"_dP";
|
action = "\"_dP";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
action = "<cmd>LspStop<CR>";
|
||||||
|
key = "<leader>ls";
|
||||||
|
mode = ["n"];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
colorschemes.rose-pine.enable = true;
|
colorschemes.rose-pine.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue