-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making big improvements to neovim and moving into home as that makes …
…more sense
- Loading branch information
Showing
7 changed files
with
201 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
./kdenlive.nix | ||
./kitty.nix | ||
./neofetch.nix | ||
./neovim.nix | ||
./packages.nix | ||
./rofi.nix | ||
./starship.nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
{ config, pkgs, ... }: | ||
|
||
let | ||
plugins = pkgs.vimPlugins; | ||
theme = config.colorScheme.palette; | ||
in { | ||
programs.nixvim = { | ||
enable = true; | ||
|
||
globals.mapleader = " "; # Sets the leader key to space | ||
|
||
options = { | ||
clipboard="unnamedplus"; | ||
number = true; # Show line numbers | ||
relativenumber = true; # Show relative line numbers | ||
shiftwidth = 2; # Tab width should be 2 | ||
softtabstop = 2; | ||
smartindent = true; | ||
wrap = false; | ||
swapfile = false; | ||
backup = false; | ||
hlsearch = false; | ||
incsearch = true; | ||
termguicolors = true; | ||
scrolloff = 8; | ||
updatetime = 50; | ||
}; | ||
|
||
colorschemes.base16.enable = true; | ||
colorschemes.base16.customColorScheme = { | ||
base00 = "#${theme.base00}"; | ||
base01 = "#${theme.base01}"; | ||
base02 = "#${theme.base02}"; | ||
base03 = "#${theme.base03}"; | ||
base04 = "#${theme.base04}"; | ||
base05 = "#${theme.base05}"; | ||
base06 = "#${theme.base06}"; | ||
base07 = "#${theme.base07}"; | ||
base08 = "#${theme.base08}"; | ||
base09 = "#${theme.base09}"; | ||
base0A = "#${theme.base0A}"; | ||
base0B = "#${theme.base0B}"; | ||
base0C = "#${theme.base0C}"; | ||
base0D = "#${theme.base0D}"; | ||
base0E = "#${theme.base0E}"; | ||
base0F = "#${theme.base0F}"; | ||
}; | ||
|
||
plugins = { | ||
barbecue.enable = true; | ||
telescope = { | ||
enable = true; | ||
keymaps = { | ||
"<leader>ff" = "find_files"; | ||
}; | ||
}; | ||
neo-tree.enable = true; | ||
indent-blankline.enable = true; | ||
nvim-colorizer.enable = true; | ||
nvim-autopairs.enable = true; | ||
nix.enable = true; | ||
comment-nvim.enable = true; | ||
lualine = { | ||
enable = true; | ||
componentSeparators = { | ||
left = "|"; | ||
right = "|"; | ||
}; | ||
sectionSeparators = { | ||
left = ""; | ||
right = ""; | ||
}; | ||
inactiveSections = { | ||
lualine_a = [ "filename" ]; | ||
lualine_b = null; | ||
lualine_c = null; | ||
lualine_x = null; | ||
lualine_y = null; | ||
lualine_z = [ "location" ]; | ||
}; | ||
sections = { | ||
lualine_a = ["mode" "separator = { left = '' }" "right_padding = 2" ]; | ||
lualine_b = [ "filename" "branch" ]; | ||
lualine_c = [ "fileformat" ]; | ||
lualine_x = [ ]; | ||
lualine_y = [ "filetype" "progress" ]; | ||
lualine_z = [ "location" "separator = { right = '' }" "left_padding = 2" ]; | ||
}; | ||
|
||
}; | ||
startup = { | ||
enable = true; | ||
theme = "dashboard"; | ||
}; | ||
lint = { | ||
enable = true; | ||
lintersByFt = { | ||
text = ["vale"]; | ||
json = ["jsonlint"]; | ||
markdown = ["vale"]; | ||
rst = ["vale"]; | ||
ruby = ["ruby"]; | ||
janet = ["janet"]; | ||
inko = ["inko"]; | ||
clojure = ["clj-kondo"]; | ||
dockerfile = ["hadolint"]; | ||
terraform = ["tflint"]; | ||
typscriptreact = ["prettier_eslint"]; | ||
}; | ||
}; | ||
lsp = { | ||
enable = true; | ||
servers = { | ||
tsserver.enable = true; | ||
lua-ls.enable = true; | ||
bashls.enable = true; | ||
rust-analyzer = { | ||
enable = true; | ||
installRustc = true; | ||
installCargo = true; | ||
}; | ||
nixd.enable = true; | ||
html.enable = true; | ||
ccls.enable = true; | ||
cmake.enable = true; | ||
csharp-ls.enable = true; | ||
cssls.enable = true; | ||
gopls.enable = true; | ||
jsonls.enable = true; | ||
pyright.enable = true; | ||
tailwindcss.enable = true; | ||
}; | ||
}; | ||
lsp-lines.enable = true; | ||
treesitter = { | ||
enable = true; | ||
nixGrammars = true; | ||
}; | ||
nvim-cmp = { | ||
enable = true; | ||
autoEnableSources = true; | ||
sources = [ | ||
{ name = "nvim_lsp"; } | ||
{ name = "path"; } | ||
{ name = "buffer"; } | ||
]; | ||
mapping = { | ||
"<CR>" = "cmp.mapping.confirm({ select = true })"; | ||
"<Tab>" = { | ||
action = ''cmp.mapping.select_next_item()''; | ||
modes = [ "i" "s" ]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
# FOR NEOVIDE | ||
extraConfigLua = '' | ||
vim.opt.guifont = "JetBrainsMono\\ NFM,Noto_Color_Emoji:h14" | ||
vim.g.neovide_cursor_animation_length = 0.05 | ||
''; | ||
|
||
extraConfigVim = '' | ||
set noshowmode | ||
inoremap jj <ESC> | ||
''; | ||
|
||
keymaps = [ | ||
{ | ||
mode = "n"; | ||
key = "<leader>fb"; | ||
action = "<cmd>Neotree reveal right<CR>"; | ||
options.silent = false; | ||
} | ||
{ | ||
key = "<Tab>"; | ||
action = ":bnext<CR>"; | ||
options.silent = false; | ||
} | ||
{ | ||
key = "<S-Tab>"; | ||
action = ":bprev<CR>"; | ||
options.silent = false; | ||
} | ||
]; | ||
|
||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
./intel-nvidia.nix | ||
./kernel.nix | ||
./logitech.nix | ||
./neovim.nix | ||
./nfs.nix | ||
./ntp.nix | ||
./nvidia.nix | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ in { | |
hostname = "${hostname}"; | ||
gitUsername = "Tyler Kelley"; | ||
gitEmail = "[email protected]"; | ||
theme = "tomorrow-night"; | ||
theme = "catppuccin-mocha"; | ||
slickbar = if waybarStyle == "slickbar" then true else false; | ||
slickbar-num = if waybarStyle == "slickbar-num" then true else false; | ||
simplebar = if waybarStyle == "simplebar" then true else false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters