fix(nvim): make typescript vue work
This commit is contained in:
parent
030cbaf9ba
commit
fb4a7ee2a3
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
plugins.typescript-tools = {
|
plugins.typescript-tools = {
|
||||||
enable = true;
|
enable = false;
|
||||||
onAttach = ''
|
onAttach = ''
|
||||||
function(client, bufnr)
|
function(client, bufnr)
|
||||||
client.server_capabilities.documentFormattingProvider = false
|
client.server_capabilities.documentFormattingProvider = false
|
||||||
@ -23,6 +23,9 @@
|
|||||||
includeInlayFunctionLikeReturnTypeHints = true;
|
includeInlayFunctionLikeReturnTypeHints = true;
|
||||||
includeInlayEnumMemberValueHints = true;
|
includeInlayEnumMemberValueHints = true;
|
||||||
};
|
};
|
||||||
|
tsserverPlugins = [
|
||||||
|
"@vue/typescript-plugin"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
{icons, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
icons,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
plugins = {
|
plugins = {
|
||||||
lsp-format = {
|
lsp-format = {
|
||||||
enable = false; # Enable it if you want lsp-format integration for none-ls
|
enable = false; # Enable it if you want lsp-format integration for none-ls
|
||||||
@ -26,8 +30,8 @@
|
|||||||
};
|
};
|
||||||
nil-ls = {enable = true;};
|
nil-ls = {enable = true;};
|
||||||
tsserver = {
|
tsserver = {
|
||||||
enable = false;
|
enable = true;
|
||||||
filetypes = ["javascript" "javascriptreact" "typescript" "typescriptreact"];
|
filetypes = ["javascript" "javascriptreact" "typescript" "typescriptreact" "vue"];
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
settings = {
|
settings = {
|
||||||
javascript = {
|
javascript = {
|
||||||
@ -53,10 +57,23 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
init_options = {
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "@vue/typescript-plugin";
|
||||||
|
location = "${pkgs.vue-language-server}/lib/node_modules/@vue/language-server";
|
||||||
|
languages = ["javascript" "typescript" "vue"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
astro = {enable = true;};
|
astro = {enable = true;};
|
||||||
volar = {enable = true;};
|
volar = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vue-language-server;
|
||||||
|
rootDir = ''require("lspconfig.util").root_pattern("src/App.vue")'';
|
||||||
|
};
|
||||||
svelte = {enable = true;};
|
svelte = {enable = true;};
|
||||||
eslint = {enable = true;};
|
eslint = {enable = true;};
|
||||||
pyright = {enable = true;};
|
pyright = {enable = true;};
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
};
|
};
|
||||||
prettier = {
|
prettier = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
disableTsServerFormatter = true;
|
||||||
};
|
};
|
||||||
google_java_format = {
|
google_java_format = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user