testing nixvim 2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{pkgs, ...}:
|
||||
{
|
||||
imports = [
|
||||
./barbar.nix
|
||||
@@ -8,7 +9,6 @@
|
||||
./lsp.nix
|
||||
./lualine.nix
|
||||
./markdown-preview.nix
|
||||
./neorg.nix
|
||||
./neo-tree.nix
|
||||
./startify.nix
|
||||
./tagbar.nix
|
||||
@@ -18,7 +18,9 @@
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
colorschemes.gruvbox.enable = true;
|
||||
|
||||
extraPlugins = [pkgs.vimPlugins.gruvbox-material];
|
||||
colorscheme = "gruvbox-material";
|
||||
|
||||
plugins = {
|
||||
gitsigns = {
|
||||
|
||||
@@ -23,11 +23,72 @@
|
||||
};
|
||||
|
||||
servers = {
|
||||
clangd.enable = true;
|
||||
lua-ls.enable = true;
|
||||
texlab.enable = true;
|
||||
clangd = {enable = true;};
|
||||
lua-ls = {
|
||||
enable = true;
|
||||
extraOptions = {
|
||||
settings = {
|
||||
Lua = {
|
||||
completion = {
|
||||
callSnippet = "Replace";
|
||||
};
|
||||
telemetry = {
|
||||
enabled = false;
|
||||
};
|
||||
hint = {enable = true;};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
nil-ls = {enable = true;};
|
||||
tsserver = {
|
||||
enable = true;
|
||||
filetypes = ["javascript" "javascriptreact" "typescript" "typescriptreact"];
|
||||
cmd = ["./tsserver-wrapper.sh"];
|
||||
extraOptions = {
|
||||
settings = {
|
||||
javascript = {
|
||||
inlayHints = {
|
||||
includeInlayEnumMemberValueHints = true;
|
||||
includeInlayFunctionLikeReturnTypeHints = true;
|
||||
includeInlayFunctionParameterTypeHints = true;
|
||||
includeInlayParameterNameHints = "all";
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = true;
|
||||
includeInlayPropertyDeclarationTypeHints = true;
|
||||
includeInlayVariableTypeHints = true;
|
||||
};
|
||||
};
|
||||
typescript = {
|
||||
inlayHints = {
|
||||
includeInlayEnumMemberValueHints = true;
|
||||
includeInlayFunctionLikeReturnTypeHints = true;
|
||||
includeInlayFunctionParameterTypeHints = true;
|
||||
includeInlayParameterNameHints = "all";
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = true;
|
||||
includeInlayPropertyDeclarationTypeHints = true;
|
||||
includeInlayVariableTypeHints = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
eslint = {enable = true;};
|
||||
pyright = {enable = true;};
|
||||
ruff-lsp = {enable = true;};
|
||||
|
||||
rust-analyzer = {
|
||||
enable = true;
|
||||
installCargo = true;
|
||||
installRustc = true;
|
||||
settings = {
|
||||
checkOnSave = true;
|
||||
check = {
|
||||
command = "clippy";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
4
home/extra/neovim/plugins/tsserver-wrapper.sh
Executable file
4
home/extra/neovim/plugins/tsserver-wrapper.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export PATH="/etc/profiles/per-user/cnst/bin:$PATH"
|
||||
echo "PATH=$PATH" > /tmp/tsserver-log.txt
|
||||
exec /etc/profiles/per-user/cnst/bin/tsserver "$@" >> /tmp/tsserver-log.txt 2>&1
|
||||
Reference in New Issue
Block a user