feat(nvim): add lsp status on lualine

This commit is contained in:
matt1432 2023-11-22 16:22:00 -05:00
parent 1fae0a73d3
commit 13e83c7dfd
2 changed files with 49 additions and 30 deletions

View file

@ -61,42 +61,48 @@ in {
enable = true;
settings = {
# General
"colors.enable" = true;
"coc.preferences.formatOnType" = true;
"diagnostic.checkCurrentLine" = true;
"inlayHint.enable" = false;
colors.enable = true;
coc.preferences.formatOnType = true;
diagnostic.checkCurrentLine = true;
inlayHint.enable = false;
# Eslint
"eslint.format.enable" = true;
"eslint.autoFixOnSave" = true;
# ESLint
eslint = {
format.enable = true;
autoFixOnSave = true;
};
# Stylelint
"stylelintplus.enable" = true;
"stylelintplus.cssInJs" = true;
"stylelintplus.autoFixOnSave" = true;
"stylelintplus.autoFixOnFormat" = true;
"css.validate" = false;
"less.validate" = false;
"scss.validate" = false;
"wxss.validate" = false;
stylelintplus = {
enable = true;
cssInJs = true;
autoFixOnSave = true;
autoFixOnFormat = true;
};
css.validate = false;
less.validate = false;
scss.validate = false;
wxss.validate = false;
# Lua lsp
"Lua.misc.parameters" = [
"--metapath"
"~/.cache/sumneko_lua/meta"
"--logpath"
"~/.cache/sumneko_lua/log"
];
"Lua.workspace.library" = [
"$\{3rd\}/luv/library"
];
# Lua
Lua = {
misc.parameters = [
"--metapath"
"~/.cache/sumneko_lua/meta"
"--logpath"
"~/.cache/sumneko_lua/log"
];
workspace.library = [
"$\{3rd\}/luv/library"
];
};
sumneko-lua = {
serverDir = "${pkgs.lua-language-server}/share/lua-language-server";
enableNvimLuaDev = true;
};
# Nix
languageserver = {
# Nix
nix = {
command = "nil";
filetypes = ["nix"];
@ -109,9 +115,19 @@ in {
};
};
# Misc
"java.jdt.ls.java.home" = "${pkgs.temurin-bin-17}";
"bashIde.shellcheckPath" = "${pkgs.shellcheck}/bin/shellcheck";
# Java
java.jdt.ls = {
java.home = "${pkgs.temurin-bin-17}";
statusIcons = {
"busy" = "Busy";
"ready" = "OK";
"warning" = "Warning";
"error" = "Error";
};
};
# Bash
bashIde.shellcheckPath = "${pkgs.shellcheck}/bin/shellcheck";
};
};

View file

@ -1,6 +1,9 @@
require('lualine').setup({
options = {
theme = 'dracula',
globalstatus = true
globalstatus = true,
},
sections = {
lualine_x = {'g:coc_status', 'bo:filetype'},
}
})