Trying out nixvim and fish again. And other stuff
parent
a889460bc4
commit
ecf2a0db9f
@ -0,0 +1,105 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
withNodeJs = true;
|
||||
withRuby = true;
|
||||
|
||||
colorschemes.catppuccin.enable = true;
|
||||
colorschemes.catppuccin.settings.transparent_background = true;
|
||||
|
||||
opts = {
|
||||
number = true;
|
||||
ignorecase = true;
|
||||
smartcase = true;
|
||||
|
||||
tabstop = 4;
|
||||
shiftwidth = 4;
|
||||
softtabstop = 0;
|
||||
expandtab = true;
|
||||
smarttab = true;
|
||||
|
||||
clipboard = "unnamedplus";
|
||||
};
|
||||
|
||||
globals = {
|
||||
mapleader = " ";
|
||||
maplocalleader = " ";
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{ key = "<leader>e"; action = "<cmd>Neotree toggle<cr>"; }
|
||||
{ key = "<leader>ff"; action = "<cmd>Telescope find_files<cr>"; }
|
||||
{ key = "<leader>fr"; action = "<cmd>Telescope oldfiles<cr>"; }
|
||||
{ key = "<leader>bd"; action = "<cmd>bdelete<cr>"; }
|
||||
{ key = "<S-l>"; action = "<cmd>bnext<cr>"; }
|
||||
{ key = "<S-h>"; action = "<cmd>bprev<cr>"; }
|
||||
];
|
||||
|
||||
plugins = {
|
||||
bufferline.enable = true;
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
settings.sources = [
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "path"; }
|
||||
{ name = "buffer"; }
|
||||
];
|
||||
};
|
||||
cmp-nvim-lsp.enable = true;
|
||||
cmp-buffer.enable = true;
|
||||
cmp-path.enable = true;
|
||||
codeium-nvim.enable = true;
|
||||
commentary.enable = true;
|
||||
# conform-nvim.enable = true;
|
||||
dashboard.enable = true;
|
||||
emmet.enable = true;
|
||||
gitsigns.enable = true;
|
||||
lazygit.enable = true;
|
||||
lint.enable = true;
|
||||
lualine.enable = true;
|
||||
luasnip.enable = true;
|
||||
lsp = {
|
||||
enable = true;
|
||||
inlayHints = true;
|
||||
servers = {
|
||||
eslint.enable = true;
|
||||
html.enable = true;
|
||||
lua-ls.enable = true;
|
||||
nil-ls.enable = true;
|
||||
# phpactor.enable = true;
|
||||
intelephense.enable = true;
|
||||
# rust-analyzer.enable = true;
|
||||
tsserver.enable = true;
|
||||
|
||||
};
|
||||
};
|
||||
lsp-format.enable = true;
|
||||
lsp-lines.enable = true;
|
||||
neo-tree.enable = true;
|
||||
notify.enable = true;
|
||||
nix.enable = true;
|
||||
noice.enable = true;
|
||||
nvim-autopairs.enable = true;
|
||||
oil.enable = true;
|
||||
orgmode = {
|
||||
enable = true;
|
||||
settings.org_agenda_files = "~/Sync/Notes/*";
|
||||
settings.org_default_notes_file = "~/Sync/Notes/Main.org";
|
||||
};
|
||||
persistence.enable = true;
|
||||
surround.enable = true;
|
||||
telescope.enable = true;
|
||||
tmux-navigator.enable = true;
|
||||
todo-comments.enable = true;
|
||||
treesitter.enable = true;
|
||||
trouble.enable = true;
|
||||
ts-autotag.enable = true;
|
||||
which-key.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
|
||||
vim.opt.relativenumber = false
|
||||
vim.g.autoformat = false
|
@ -1,121 +0,0 @@
|
||||
return {
|
||||
|
||||
{ "tpope/vim-sleuth" },
|
||||
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
config = function()
|
||||
require("catppuccin").setup({
|
||||
transparent_background = true,
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- {
|
||||
-- "f-person/auto-dark-mode.nvim",
|
||||
-- config = {
|
||||
-- set_dark_mode = function()
|
||||
-- vim.api.nvim_set_option("background", "dark")
|
||||
-- vim.cmd("colorscheme catppuccin")
|
||||
-- -- vim.cmd("colorscheme rose-pine")
|
||||
-- end,
|
||||
-- set_light_mode = function()
|
||||
-- vim.api.nvim_set_option("background", "light")
|
||||
-- vim.cmd("colorscheme catppuccin")
|
||||
-- -- vim.cmd("colorscheme rose-pine")
|
||||
-- end,
|
||||
-- },
|
||||
-- },
|
||||
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "catppuccin",
|
||||
background_colour = "#000000",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-orgmode/orgmode",
|
||||
config = function()
|
||||
-- require("orgmode").setup_ts_grammar()
|
||||
|
||||
require("nvim-treesitter.configs").setup({
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = { "org" }, -- Required for spellcheck, some LaTex highlights and code block highlights that do not have ts grammar
|
||||
},
|
||||
ensure_installed = { "org" }, -- Or run :TSUpdate org
|
||||
})
|
||||
|
||||
require("orgmode").setup({
|
||||
org_agenda_files = { "~/Sync/Notes/*" },
|
||||
org_default_notes_file = "~/Sync/Notes/Main.org",
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{ "dhruvasagar/vim-table-mode" },
|
||||
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
version = "*",
|
||||
config = true,
|
||||
keys = {
|
||||
{ [[<C-\>]] },
|
||||
{
|
||||
"<leader>TT",
|
||||
"<cmd>ToggleTerm direction=horizontal<cr>",
|
||||
desc = "Open a horizontal terminal",
|
||||
},
|
||||
{
|
||||
"<leader>TV",
|
||||
"<cmd>ToggleTerm size=60 direction=vertical<cr>",
|
||||
desc = "Open a vertical terminal",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
cmd = {
|
||||
"TmuxNavigateLeft",
|
||||
"TmuxNavigateDown",
|
||||
"TmuxNavigateUp",
|
||||
"TmuxNavigateRight",
|
||||
"TmuxNavigatePrevious",
|
||||
},
|
||||
keys = {
|
||||
{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
|
||||
{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
|
||||
{ "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
|
||||
{ "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
|
||||
{ "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" },
|
||||
},
|
||||
},
|
||||
|
||||
{ "lukas-reineke/headlines.nvim", opts = { org = { fat_headlines = false } } },
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"php",
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"chrisgrieser/nvim-rip-substitute",
|
||||
cmd = "RipSubstitute",
|
||||
keys = {
|
||||
{
|
||||
"<leader>fs",
|
||||
function() require("rip-substitute").sub() end,
|
||||
mode = { "n", "x" },
|
||||
desc = " rip substitute",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue