lsp config

This commit is contained in:
Hadi
2025-04-01 20:22:27 +02:00
parent eb1f6b2e8b
commit 10dffe8d92
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
{ {
programs.nixvim = { programs.nixvim = {
globals.mapleader = " "; globals.mapleader = " ";
diagnostics = {
virtual_lines = { only_current_line = true; };
virtual_text = true;
};
opts = { opts = {
autoindent = true; autoindent = true;

View File

@@ -3,6 +3,7 @@
lsp-format.enable = true; lsp-format.enable = true;
lsp = { lsp = {
enable = true; enable = true;
inlayHints = true;
servers = { servers = {
bashls.enable = true; bashls.enable = true;
gopls.enable = true; gopls.enable = true;
@@ -16,6 +17,7 @@
none-ls = { none-ls = {
enable = true; enable = true;
sources = { sources = {
completion = { luasnip.enable = true; };
diagnostics = { diagnostics = {
golangci_lint.enable = true; golangci_lint.enable = true;
statix.enable = true; statix.enable = true;