Compare commits
5 commits
34240ddad0
...
f4e4f8ef91
Author | SHA1 | Date | |
---|---|---|---|
f4e4f8ef91 | |||
1ba961aec9 | |||
061ff0f5f5 | |||
1e3b9afc4b | |||
019df2b55e |
4 changed files with 20 additions and 11 deletions
|
@ -25,18 +25,12 @@ let inherit (lib.nix2lua) call; in
|
|||
"cargo.autoreload" = true;
|
||||
};
|
||||
};
|
||||
tsserver = rec {
|
||||
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
|
||||
init_options.plugins = [
|
||||
{
|
||||
name = "@vue/typescript-plugin";
|
||||
location = "./node_modules/@vue/typescript-plugin";
|
||||
languages = filetypes;
|
||||
}
|
||||
];
|
||||
};
|
||||
eslint = {
|
||||
on_attach = config.fn.lspconfig-eslint-on-attach.lambda;
|
||||
flags = {
|
||||
allow_incremental_sync = false;
|
||||
debounce_text_changes = 1000;
|
||||
};
|
||||
};
|
||||
volar = {
|
||||
init_options = {
|
||||
|
@ -52,6 +46,6 @@ let inherit (lib.nix2lua) call; in
|
|||
root_dir = call "${config.plugin.nvim-lspconfig.varName}.util.root_pattern" [ "deno.json" "deno.jsonc" ];
|
||||
};
|
||||
jdtls = { cmd = [ "jdtls" ]; };
|
||||
jsonls = {};
|
||||
jsonls = { };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ in
|
|||
d2 = "*.d2";
|
||||
nickel = "*.ncl";
|
||||
psql = "*.psql";
|
||||
sql = "*.pgsql";
|
||||
};
|
||||
|
||||
# Enable fast navigation between windows
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./ollama.nix
|
||||
./typescript-tools.nix
|
||||
];
|
||||
}
|
||||
|
|
13
neovim/plugins/typescript-tools.nix
Normal file
13
neovim/plugins/typescript-tools.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
plugin.typescript-tools-nvim = {
|
||||
enable = true;
|
||||
name = "typescript-tools";
|
||||
setupSettings = {
|
||||
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
|
||||
settings = {
|
||||
tsserver_max_memory = "auto";
|
||||
tsserver_plugins = [ "@vue/typescript-plugin" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue