Compare commits
2 commits
4205344bb6
...
3bff0ca1d2
Author | SHA1 | Date | |
---|---|---|---|
3bff0ca1d2 | |||
2d9b40b809 |
2 changed files with 14 additions and 1 deletions
|
@ -29,6 +29,8 @@
|
|||
enable = true;
|
||||
extraOptions.on_init.__raw = ''
|
||||
function(client)
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
client.handlers['tsserver/request'] = function(_, result, context)
|
||||
local clients = vim.lsp.get_clients({ bufnr = context.bufnr, name = 'vtsls' })
|
||||
if #clients == 0 then
|
||||
|
@ -59,6 +61,12 @@
|
|||
typescript-tools = {
|
||||
enable = true;
|
||||
settings = {
|
||||
on_attach.__raw = ''
|
||||
function(client)
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
end
|
||||
'';
|
||||
filetypes = [ "javascript" "typescript" "vue" ];
|
||||
settings = {
|
||||
single_file_support = false;
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
{ ... }: {
|
||||
{ pkgs, ... }: {
|
||||
programs.nixvim.plugins.none-ls = {
|
||||
enable = true;
|
||||
sources = {
|
||||
formatting = {
|
||||
black.enable = true;
|
||||
dart_format.enable = true;
|
||||
mdformat = {
|
||||
enable = true;
|
||||
package = pkgs.mdformat.withPlugins
|
||||
(packages: with packages; [ mdformat-tables ]);
|
||||
};
|
||||
nixfmt.enable = true;
|
||||
xmllint.enable = true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue