Compare commits
3
Commits
c7f94ebbd6
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24584e6c9a | ||
|
|
f5b6d10721 | ||
|
|
c30060c08c |
@@ -7,13 +7,11 @@
|
||||
];
|
||||
|
||||
plugins = {
|
||||
lspkind = {
|
||||
enable = true;
|
||||
settings.mode = "symbol";
|
||||
};
|
||||
lspkind.enable = true;
|
||||
|
||||
cmp = {
|
||||
enable = true;
|
||||
|
||||
autoEnableSources = true;
|
||||
|
||||
settings = {
|
||||
@@ -21,7 +19,7 @@
|
||||
|
||||
formatting.fields = [
|
||||
"abbr"
|
||||
"kind"
|
||||
"icon"
|
||||
"menu"
|
||||
];
|
||||
|
||||
|
||||
@@ -21,27 +21,22 @@
|
||||
};
|
||||
settings = {
|
||||
default_format_opts.lsp_format = "fallback";
|
||||
format_on_save = ''
|
||||
function(bufnr)
|
||||
local disable_filetypes = { c = true, cpp = true }
|
||||
local lsp_format_opt
|
||||
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||
lsp_format_opt = 'never'
|
||||
else
|
||||
lsp_format_opt = 'fallback'
|
||||
end
|
||||
return {
|
||||
timeout_ms = 500,
|
||||
lsp_format = lsp_format_opt,
|
||||
}
|
||||
end
|
||||
'';
|
||||
format_on_save = {
|
||||
lsp_format = "fallback";
|
||||
timeout_ms = 500;
|
||||
};
|
||||
|
||||
formatters_by_ft = {
|
||||
c = [ "clang-format" ];
|
||||
lua = [ "stylua" ];
|
||||
nix = [ "nixfmt" ];
|
||||
python = [ "ruff" ];
|
||||
python = [ "ruff_format" ];
|
||||
};
|
||||
|
||||
formatters.clang-format.prepend_args = [
|
||||
"--style=file"
|
||||
"--fallback-style=LLVM"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -51,13 +51,7 @@
|
||||
installCargo = false;
|
||||
installRustc = false;
|
||||
};
|
||||
qmlls = {
|
||||
enable = true;
|
||||
cmd = [
|
||||
"qmlls"
|
||||
"-E"
|
||||
];
|
||||
};
|
||||
clangd.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user