feat: nixvim configuration init
This commit is contained in:
3
config/modules/plugins/lsp/ansiblels.nix
Normal file
3
config/modules/plugins/lsp/ansiblels.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.ansiblels.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/bashls.nix
Normal file
3
config/modules/plugins/lsp/bashls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.bashls.enable = true;
|
||||
}
|
||||
75
config/modules/plugins/lsp/default.nix
Normal file
75
config/modules/plugins/lsp/default.nix
Normal file
@@ -0,0 +1,75 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
# Default configurations for lsp servers
|
||||
./lspconfig.nix
|
||||
|
||||
./ansiblels.nix
|
||||
./bashls.nix
|
||||
./docker_compose_language_server.nix
|
||||
./dockerls.nix
|
||||
./gopls.nix
|
||||
./helm_ls.nix
|
||||
./jdtls.nix
|
||||
./jsonls.nix
|
||||
./jsonnet_ls.nix
|
||||
./just.nix
|
||||
./lua_ls.nix
|
||||
./marksman.nix
|
||||
./nixd.nix
|
||||
./ruff.nix
|
||||
./tflint.nix
|
||||
./yamlls.nix
|
||||
];
|
||||
|
||||
# lsp.keymaps = [
|
||||
# {
|
||||
# key = "gd";
|
||||
# lspBufAction = "definition";
|
||||
# }
|
||||
# {
|
||||
# key = "gD";
|
||||
# lspBufAction = "references";
|
||||
# }
|
||||
# {
|
||||
# key = "gt";
|
||||
# lspBufAction = "type_definition";
|
||||
# }
|
||||
# {
|
||||
# key = "gi";
|
||||
# lspBufAction = "implementation";
|
||||
# }
|
||||
# {
|
||||
# key = "K";
|
||||
# lspBufAction = "hover";
|
||||
# }
|
||||
# {
|
||||
# action = lib.nixvim.mkRaw "function() vim.diagnostic.jump({ count=-1, float=true }) end";
|
||||
# key = "<leader>k";
|
||||
# }
|
||||
# {
|
||||
# action = lib.nixvim.mkRaw "function() vim.diagnostic.jump({ count=1, float=true }) end";
|
||||
# key = "<leader>j";
|
||||
# }
|
||||
# {
|
||||
# action = "<CMD>LspStop<Enter>";
|
||||
# key = "<leader>lx";
|
||||
# }
|
||||
# {
|
||||
# action = "<CMD>LspStart<Enter>";
|
||||
# key = "<leader>ls";
|
||||
# }
|
||||
# {
|
||||
# action = "<CMD>LspRestart<Enter>";
|
||||
# key = "<leader>lr";
|
||||
# }
|
||||
# # {
|
||||
# # action = lib.nixvim.mkRaw "require('telescope.builtin').lsp_definitions";
|
||||
# # key = "gd";
|
||||
# # }
|
||||
# {
|
||||
# action = "<CMD>Lspsaga hover_doc<Enter>";
|
||||
# key = "K";
|
||||
# }
|
||||
# ];
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.docker_compose_language_service.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/dockerls.nix
Normal file
3
config/modules/plugins/lsp/dockerls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.dockerls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/gopls.nix
Normal file
3
config/modules/plugins/lsp/gopls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.gopls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/helm_ls.nix
Normal file
3
config/modules/plugins/lsp/helm_ls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.helm_ls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/jdtls.nix
Normal file
3
config/modules/plugins/lsp/jdtls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.jdtls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/jsonls.nix
Normal file
3
config/modules/plugins/lsp/jsonls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.jsonls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/jsonnet_ls.nix
Normal file
3
config/modules/plugins/lsp/jsonnet_ls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.jsonnet_ls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/just.nix
Normal file
3
config/modules/plugins/lsp/just.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.just.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/lspconfig.nix
Normal file
3
config/modules/plugins/lsp/lspconfig.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
plugins.lspconfig.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/lua_ls.nix
Normal file
3
config/modules/plugins/lsp/lua_ls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.lua_ls.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/marksman.nix
Normal file
3
config/modules/plugins/lsp/marksman.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.marksman.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/nixd.nix
Normal file
3
config/modules/plugins/lsp/nixd.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.nixd.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/ruff.nix
Normal file
3
config/modules/plugins/lsp/ruff.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.ruff.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/tflint.nix
Normal file
3
config/modules/plugins/lsp/tflint.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.tflint.enable = true;
|
||||
}
|
||||
3
config/modules/plugins/lsp/yamlls.nix
Normal file
3
config/modules/plugins/lsp/yamlls.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
lsp.servers.yamlls.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user