1
0
Fork 0

Compare commits

..

No commits in common. "3bff0ca1d2b45607d96513f60280f7e104a0d307" and "4205344bb6fae502afaee2f7a3a2a62ce5684ce2" have entirely different histories.

2 changed files with 1 additions and 14 deletions

View file

@ -29,8 +29,6 @@
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
@ -61,12 +59,6 @@
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;

View file

@ -1,15 +1,10 @@
{ 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;
};