add nix lsp

This commit is contained in:
Evan Reichard 2025-01-26 21:27:14 -05:00
parent 7218ee7b7d
commit 286ae5375c
11 changed files with 12 additions and 23 deletions

View File

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
programs.bash = {
enable = true;
@ -17,5 +15,4 @@
fastfetch
'';
};
}

View File

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
programs.direnv = {
enable = true;

View File

@ -1,4 +1,3 @@
{ config, pkgs, ... }:
{
xdg.configFile = {
"fastfetch/config.jsonc" = {

View File

@ -1,4 +1,3 @@
{ config, pkgs, ... }:
{
xdg.configFile = {
"ghostty/config" = {

View File

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
@ -32,13 +30,11 @@
};
};
# Copy Configuration
xdg.configFile = {
# Copy Configuration
git = {
source = ./config;
recursive = true;
};
};
}

View File

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
let
inherit (pkgs.lib) mkIf optionals;
inherit (pkgs.lib) optionals;
inherit (pkgs.stdenv) isLinux isDarwin;
in
{

View File

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
xdg.configFile."htop/htoprc" = {
source = ./config/htoprc;

View File

@ -137,6 +137,13 @@ nvim_lsp.templ.setup({
capabilities = capabilities,
})
-- Nix LSP Configuration
nvim_lsp.nil_ls.setup({
on_attach = on_attach,
flags = lsp_flags,
capabilities = capabilities,
})
-- Go LSP Configuration
nvim_lsp.gopls.setup({
on_attach = function(client, bufnr)

View File

@ -1,6 +1,5 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
let
inherit (pkgs.lib.lists) subtractLists;
unstable = import <nixpkgs-unstable> { };
in
{
@ -151,6 +150,7 @@ in
golangci-lint-langserver
gopls
lua-language-server
nil
nodePackages.eslint
nodePackages.svelte-language-server
nodePackages.typescript

View File

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
programs.powerline-go = {
enable = true;

View File

@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
programs.readline = {
enable = true;
@ -9,5 +7,4 @@
set vi-cmd-mode-string \1\e[01;38;5;22;48;5;148m\2 C \1\e[38;5;148;48;5;238m\2\1\e[0m\2
'';
};
}