Lps: added lsp and formatter for protobuf

- added lsp and formatter for lua
This commit is contained in:
Barna Máté 2024-12-19 19:16:51 +01:00
parent 2d4f34fe82
commit 2981a118ae
3 changed files with 48 additions and 0 deletions

View file

@ -6,7 +6,9 @@
./docker.nix
./html.nix
./json.nix
./lua.nix
./nix.nix
./protobuf.nix
./rust.nix
./ts.nix
./yaml.nix

View file

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
plugins = {
lsp.servers.lua_ls.enable = true;
conform-nvim.settings = {
formatters_by_ft = {
lua = [ "stylua" ];
};
formatters = {
stylua = {
command = "${pkgs.stylua}/bin/stylua";
};
};
};
lint = {
lintersByFt.lua = [ "luacheck" ];
linters.luacheck.cmd = "${pkgs.lua54Packages.luacheck}/bin/luacheck";
};
};
}

View file

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
# Enable language server for protbuf files (.proto)
plugins = {
lsp.servers.protols = {
enable = true;
};
lint = {
lintersByFt = {
protobuf = [ "protobuf" ];
};
linters = {
protobuf = {
cmd = "${pkgs.protolint}/bin/protolint";
};
};
};
};
}