add nix lsp
This commit is contained in:
parent
7218ee7b7d
commit
286ae5375c
@ -1,5 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -17,5 +15,4 @@
|
|||||||
fastfetch
|
fastfetch
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"fastfetch/config.jsonc" = {
|
"fastfetch/config.jsonc" = {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"ghostty/config" = {
|
"ghostty/config" = {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -32,13 +30,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Copy Configuration
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
|
||||||
# Copy Configuration
|
|
||||||
git = {
|
git = {
|
||||||
source = ./config;
|
source = ./config;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib) mkIf optionals;
|
inherit (pkgs.lib) optionals;
|
||||||
inherit (pkgs.stdenv) isLinux isDarwin;
|
inherit (pkgs.stdenv) isLinux isDarwin;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
xdg.configFile."htop/htoprc" = {
|
xdg.configFile."htop/htoprc" = {
|
||||||
source = ./config/htoprc;
|
source = ./config/htoprc;
|
||||||
|
@ -137,6 +137,13 @@ nvim_lsp.templ.setup({
|
|||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Nix LSP Configuration
|
||||||
|
nvim_lsp.nil_ls.setup({
|
||||||
|
on_attach = on_attach,
|
||||||
|
flags = lsp_flags,
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
-- Go LSP Configuration
|
-- Go LSP Configuration
|
||||||
nvim_lsp.gopls.setup({
|
nvim_lsp.gopls.setup({
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib.lists) subtractLists;
|
|
||||||
unstable = import <nixpkgs-unstable> { };
|
unstable = import <nixpkgs-unstable> { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -151,6 +150,7 @@ in
|
|||||||
golangci-lint-langserver
|
golangci-lint-langserver
|
||||||
gopls
|
gopls
|
||||||
lua-language-server
|
lua-language-server
|
||||||
|
nil
|
||||||
nodePackages.eslint
|
nodePackages.eslint
|
||||||
nodePackages.svelte-language-server
|
nodePackages.svelte-language-server
|
||||||
nodePackages.typescript
|
nodePackages.typescript
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.powerline-go = {
|
programs.powerline-go = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.readline = {
|
programs.readline = {
|
||||||
enable = true;
|
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
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user