updating dotfiles
This commit is contained in:
20
config/nvim/.neoconf.json
Normal file
20
config/nvim/.neoconf.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"neodev": {
|
||||
"library": {
|
||||
"enabled": true,
|
||||
"plugins": true
|
||||
}
|
||||
},
|
||||
"neoconf": {
|
||||
"plugins": {
|
||||
"lua_ls": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"lspconfig": {
|
||||
"lua_ls": {
|
||||
"Lua.format.enable": false
|
||||
}
|
||||
}
|
||||
}
|
||||
7
config/nvim/.stylua.toml
Normal file
7
config/nvim/.stylua.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
column_width = 120
|
||||
line_endings = "Unix"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
quote_style = "AutoPreferDouble"
|
||||
call_parentheses = "None"
|
||||
collapse_simple_statement = "Always"
|
||||
34
config/nvim/README.md
Normal file
34
config/nvim/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# AstroNvim Template
|
||||
|
||||
**NOTE:** This is for AstroNvim v4+
|
||||
|
||||
A template for getting started with [AstroNvim](https://github.com/AstroNvim/AstroNvim)
|
||||
|
||||
## 🛠️ Installation
|
||||
|
||||
#### Make a backup of your current nvim and shared folder
|
||||
|
||||
```shell
|
||||
mv ~/.config/nvim ~/.config/nvim.bak
|
||||
mv ~/.local/share/nvim ~/.local/share/nvim.bak
|
||||
mv ~/.local/state/nvim ~/.local/state/nvim.bak
|
||||
mv ~/.cache/nvim ~/.cache/nvim.bak
|
||||
```
|
||||
|
||||
#### Create a new user repository from this template
|
||||
|
||||
Press the "Use this template" button above to create a new repository to store your user configuration.
|
||||
|
||||
You can also just clone this repository directly if you do not want to track your user configuration in GitHub.
|
||||
|
||||
#### Clone the repository
|
||||
|
||||
```shell
|
||||
git clone https://github.com/<your_user>/<your_repository> ~/.config/nvim
|
||||
```
|
||||
|
||||
#### Start Neovim
|
||||
|
||||
```shell
|
||||
nvim
|
||||
```
|
||||
1
config/nvim/dirsession/_Users_michi.json
Normal file
1
config/nvim/dirsession/_Users_michi.json
Normal file
@@ -0,0 +1 @@
|
||||
{"global":{"width":180,"height":58,"options":{"cmdheight":0},"cwd":"/Users/michi"},"tab_scoped":false,"astrocore":{"bufnrs":{"/Users/michi/.ssh/config":1},"current_buf":1,"tabs":[[1]]},"tabs":[{"wins":["leaf",{"width":180,"height":56,"bufname":"/Users/michi/.ssh/config","options":{"winfixheight":false,"diff":false,"scrollbind":false,"previewwindow":false,"winfixwidth":false},"current":true,"cursor":[58,5]}],"options":{"cmdheight":0}}],"buffers":[{"name":"/Users/michi/.ssh/config","loaded":true,"last_pos":[58,4],"options":{"modifiable":true,"buflisted":true,"bufhidden":"","binary":false,"readonly":false,"filetype":"sshconfig"}}],"quickfix":[]}
|
||||
@@ -0,0 +1 @@
|
||||
{"tab_scoped":false,"quickfix":[],"tabs":[{"options":{"cmdheight":0},"wins":["leaf",{"height":56,"options":{"previewwindow":false,"winfixheight":false,"winfixwidth":false,"scrollbind":false,"diff":false},"bufname":"\/Users\/michi\/Documents\/workspace_private\/Typst_anschreiben_michi\/Anschreiben_Michi.typ","cursor":[33,10],"current":true,"width":180}]}],"global":{"height":58,"cwd":"\/Users\/michi\/Documents\/workspace_private\/Typst_anschreiben_michi","options":{"cmdheight":0},"width":180},"astrocore":{"current_buf":1,"bufnrs":{"\/Users\/michi\/Documents\/workspace_private\/Typst_anschreiben_michi\/Anschreiben_Michi.typ":1},"tabs":[[1]]},"buffers":[{"name":"\/Users\/michi\/Documents\/workspace_private\/Typst_anschreiben_michi\/Anschreiben_Michi.typ","last_pos":[55,11],"options":{"buflisted":true,"binary":false,"readonly":false,"bufhidden":"","modifiable":true,"filetype":"typst"},"loaded":true}]}
|
||||
1
config/nvim/dirsession/_Users_michi_dotfiles.json
Normal file
1
config/nvim/dirsession/_Users_michi_dotfiles.json
Normal file
@@ -0,0 +1 @@
|
||||
{"tabs":[{"options":{"cmdheight":0},"wins":["leaf",{"current":true,"cursor":[5,11],"bufname":"\/Users\/michi\/dotfiles\/.gitignore","width":180,"options":{"winfixwidth":false,"winfixheight":false,"diff":false,"previewwindow":false,"scrollbind":false},"height":56}]}],"quickfix":[],"global":{"options":{"cmdheight":0},"height":58,"width":180,"cwd":"\/Users\/michi\/dotfiles"},"tab_scoped":false,"astrocore":{"bufnrs":{"\/Users\/michi\/dotfiles\/.gitignore":1},"tabs":[[1]],"current_buf":1},"buffers":[{"options":{"buflisted":true,"modifiable":true,"bufhidden":"","binary":false,"readonly":false,"filetype":"gitignore"},"last_pos":[6,15],"name":"\/Users\/michi\/dotfiles\/.gitignore","loaded":true}]}
|
||||
@@ -0,0 +1 @@
|
||||
{"tabs":[{"options":{"cmdheight":0},"wins":["leaf",{"cursor":[48,7],"height":27,"options":{"winfixheight":false,"diff":false,"previewwindow":false,"scrollbind":false,"winfixwidth":false},"current":true,"width":180,"bufname":"\/Users\/michi\/dotfiles\/config\/fish\/config.fish"}]}],"tab_scoped":false,"quickfix":[],"buffers":[{"name":"\/Users\/michi\/dotfiles\/config\/fish\/config.fish","options":{"modifiable":true,"binary":false,"buflisted":true,"bufhidden":"","filetype":"fish","readonly":false},"loaded":true,"last_pos":[44,1]}],"astrocore":{"tabs":[[1]],"current_buf":1,"bufnrs":{"\/Users\/michi\/dotfiles\/config\/fish\/config.fish":1}},"global":{"options":{"cmdheight":0},"cwd":"\/Users\/michi\/dotfiles\/config\/fish","width":180,"height":29}}
|
||||
26
config/nvim/init.lua
Normal file
26
config/nvim/init.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
-- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution
|
||||
-- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk.
|
||||
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- validate that lazy is available
|
||||
if not pcall(require, "lazy") then
|
||||
-- stylua: ignore
|
||||
vim.api.nvim_echo({ { ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
||||
vim.fn.getchar()
|
||||
vim.cmd.quit()
|
||||
end
|
||||
|
||||
require "lazy_setup"
|
||||
require "polish"
|
||||
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
"<leader>k",
|
||||
'<cmd>lua require("kubectl").toggle({ tab: boolean })<cr>',
|
||||
{ noremap = true, silent = true }
|
||||
)
|
||||
@@ -1,3 +0,0 @@
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath = &runtimepath
|
||||
source ~/.vimrc
|
||||
64
config/nvim/lazy-lock.json
Normal file
64
config/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"AstroNvim": { "branch": "main", "commit": "c5e610f614e74c9dd9bf11760c4d0ad2c98c0abe" },
|
||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
|
||||
"aerial.nvim": { "branch": "master", "commit": "5c4e2da4486da5f9b798ea9a0f1fc5c6bcd3d9cf" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
|
||||
"astrocommunity": { "branch": "main", "commit": "8d16e50c840dd1c5b63fd45fc0cbc98f5b56fccc" },
|
||||
"astrocore": { "branch": "main", "commit": "44a3dc0bf1591022b2a6bc89dccdfac1be17bec9" },
|
||||
"astrolsp": { "branch": "main", "commit": "909fbe64f3f87d089ff3777751261544557117cc" },
|
||||
"astrotheme": { "branch": "main", "commit": "cf0e65a7b3ce2f830b052f4da937729eee1e7a7d" },
|
||||
"astroui": { "branch": "main", "commit": "e923a84c488d879a260fc9cfb2dc27dd870fb6ac" },
|
||||
"better-escape.nvim": { "branch": "master", "commit": "199dcc2643dec5d8dbdab4ec672cf405224dcb3b" },
|
||||
"catppuccin": { "branch": "main", "commit": "0a5de4da015a175f416d6ef1eda84661623e0500" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-dap": { "branch": "master", "commit": "ea92773e84c0ad3288c3bc5e452ac91559669087" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "3a45525bb182730fe462325c99395529308f431e" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||
"gen.nvim": { "branch": "main", "commit": "c8e1f574d4a3a839dde73a87bdc319a62ee1e559" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" },
|
||||
"guess-indent.nvim": { "branch": "main", "commit": "6cd61f7a600bb756e558627cd2e740302c58e32d" },
|
||||
"heirline.nvim": { "branch": "master", "commit": "fae936abb5e0345b85c3a03ecf38525b0828b992" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
||||
"kubectl.nvim": { "branch": "main", "commit": "81efceddca8ed31f81c47a206b841394a146360b" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||
"lazydev.nvim": { "branch": "main", "commit": "01bc2aacd51cf9021eb19d048e70ce3dd09f7f93" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
||||
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
|
||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "e51f9b259f066c4347f9a79ffde54c29a0619384" },
|
||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
||||
"mini.bufremove": { "branch": "main", "commit": "285bdac9596ee7375db50c0f76ed04336dcd2685" },
|
||||
"neo-tree.nvim": { "branch": "main", "commit": "ba6871d15528e36657d19a3112cc1697c59da19a" },
|
||||
"neoconf.nvim": { "branch": "main", "commit": "f630568a4d04154803886f21ca60923f12709f0f" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "a117163db44c256d53c3be8717f3e1a2a28e6299" },
|
||||
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "68f0e5c3dab23261a945272032ee6700af86227a" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "1e1900b0769324a9675ef85b38f99cca29e203b3" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "517df88cf2afb36652830df2c655df2da416a0ae" },
|
||||
"nvim-dap": { "branch": "master", "commit": "6a5bba0ddea5d419a783e170c20988046376090d" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "185b2af444b27d6541c02d662b5b68190e5cf0c4" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-notify": { "branch": "master", "commit": "a3020c2cf4dfc4c4f390c4a21e84e35e46cf5d17" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "f8aaf5ce4e27cd20de917946b2ae5c968a2c2858" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
||||
"nvim-ufo": { "branch": "main", "commit": "61463090a4f55f5d080236ea62f09d1cd8976ff3" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
|
||||
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
||||
"resession.nvim": { "branch": "master", "commit": "cc819b0489938d03e4f3532a583354f0287c015b" },
|
||||
"smart-splits.nvim": { "branch": "master", "commit": "ddb23c1a1cf1507bda487cda7f6e4690965ef9f5" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a17d611a0e111836a1db5295f04945df407c5135" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "19cb21f513fc2b02f0c66be70107741e837516a1" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" }
|
||||
}
|
||||
1
config/nvim/lazy/AstroNvim
Submodule
1
config/nvim/lazy/AstroNvim
Submodule
Submodule config/nvim/lazy/AstroNvim added at c5e610f614
1
config/nvim/lazy/Comment.nvim
Submodule
1
config/nvim/lazy/Comment.nvim
Submodule
Submodule config/nvim/lazy/Comment.nvim added at e30b7f2008
1
config/nvim/lazy/LuaSnip
Submodule
1
config/nvim/lazy/LuaSnip
Submodule
Submodule config/nvim/lazy/LuaSnip added at 03c8e67eb7
1
config/nvim/lazy/aerial.nvim
Submodule
1
config/nvim/lazy/aerial.nvim
Submodule
Submodule config/nvim/lazy/aerial.nvim added at 3284a2cb85
1
config/nvim/lazy/alpha-nvim
Submodule
1
config/nvim/lazy/alpha-nvim
Submodule
Submodule config/nvim/lazy/alpha-nvim added at de72250e05
1
config/nvim/lazy/astrocommunity
Submodule
1
config/nvim/lazy/astrocommunity
Submodule
Submodule config/nvim/lazy/astrocommunity added at 4296d2f4b3
1
config/nvim/lazy/astrocore
Submodule
1
config/nvim/lazy/astrocore
Submodule
Submodule config/nvim/lazy/astrocore added at 44a3dc0bf1
1
config/nvim/lazy/astrolsp
Submodule
1
config/nvim/lazy/astrolsp
Submodule
Submodule config/nvim/lazy/astrolsp added at 909fbe64f3
1
config/nvim/lazy/astrotheme
Submodule
1
config/nvim/lazy/astrotheme
Submodule
Submodule config/nvim/lazy/astrotheme added at f12dcf64b1
1
config/nvim/lazy/astroui
Submodule
1
config/nvim/lazy/astroui
Submodule
Submodule config/nvim/lazy/astroui added at e923a84c48
1
config/nvim/lazy/better-escape.nvim
Submodule
1
config/nvim/lazy/better-escape.nvim
Submodule
Submodule config/nvim/lazy/better-escape.nvim added at 199dcc2643
1
config/nvim/lazy/catppuccin
Submodule
1
config/nvim/lazy/catppuccin
Submodule
Submodule config/nvim/lazy/catppuccin added at 5b5e3aef9a
1
config/nvim/lazy/cmp-buffer
Submodule
1
config/nvim/lazy/cmp-buffer
Submodule
Submodule config/nvim/lazy/cmp-buffer added at 3022dbc916
1
config/nvim/lazy/cmp-dap
Submodule
1
config/nvim/lazy/cmp-dap
Submodule
Submodule config/nvim/lazy/cmp-dap added at ea92773e84
1
config/nvim/lazy/cmp-nvim-lsp
Submodule
1
config/nvim/lazy/cmp-nvim-lsp
Submodule
Submodule config/nvim/lazy/cmp-nvim-lsp added at 99290b3ec1
1
config/nvim/lazy/cmp-path
Submodule
1
config/nvim/lazy/cmp-path
Submodule
Submodule config/nvim/lazy/cmp-path added at 91ff86cd9c
1
config/nvim/lazy/cmp_luasnip
Submodule
1
config/nvim/lazy/cmp_luasnip
Submodule
Submodule config/nvim/lazy/cmp_luasnip added at 98d9cb5c2c
1
config/nvim/lazy/dressing.nvim
Submodule
1
config/nvim/lazy/dressing.nvim
Submodule
Submodule config/nvim/lazy/dressing.nvim added at 3a45525bb1
1
config/nvim/lazy/friendly-snippets
Submodule
1
config/nvim/lazy/friendly-snippets
Submodule
Submodule config/nvim/lazy/friendly-snippets added at efff286dd7
1
config/nvim/lazy/gitsigns.nvim
Submodule
1
config/nvim/lazy/gitsigns.nvim
Submodule
Submodule config/nvim/lazy/gitsigns.nvim added at 7010000889
1
config/nvim/lazy/guess-indent.nvim
Submodule
1
config/nvim/lazy/guess-indent.nvim
Submodule
Submodule config/nvim/lazy/guess-indent.nvim added at 6cd61f7a60
1
config/nvim/lazy/heirline.nvim
Submodule
1
config/nvim/lazy/heirline.nvim
Submodule
Submodule config/nvim/lazy/heirline.nvim added at cc359b6282
1
config/nvim/lazy/indent-blankline.nvim
Submodule
1
config/nvim/lazy/indent-blankline.nvim
Submodule
Submodule config/nvim/lazy/indent-blankline.nvim added at 005b56001b
1
config/nvim/lazy/lazy.nvim
Submodule
1
config/nvim/lazy/lazy.nvim
Submodule
Submodule config/nvim/lazy/lazy.nvim added at 6c3bda4aca
1
config/nvim/lazy/lazydev.nvim
Submodule
1
config/nvim/lazy/lazydev.nvim
Submodule
Submodule config/nvim/lazy/lazydev.nvim added at f59bd14a85
1
config/nvim/lazy/lspkind.nvim
Submodule
1
config/nvim/lazy/lspkind.nvim
Submodule
Submodule config/nvim/lazy/lspkind.nvim added at d79a1c3299
1
config/nvim/lazy/mason-lspconfig.nvim
Submodule
1
config/nvim/lazy/mason-lspconfig.nvim
Submodule
Submodule config/nvim/lazy/mason-lspconfig.nvim added at 1a31f824b9
1
config/nvim/lazy/mason-null-ls.nvim
Submodule
1
config/nvim/lazy/mason-null-ls.nvim
Submodule
Submodule config/nvim/lazy/mason-null-ls.nvim added at 2b8433f765
1
config/nvim/lazy/mason-nvim-dap.nvim
Submodule
1
config/nvim/lazy/mason-nvim-dap.nvim
Submodule
Submodule config/nvim/lazy/mason-nvim-dap.nvim added at 4c2cdc69d6
1
config/nvim/lazy/mason.nvim
Submodule
1
config/nvim/lazy/mason.nvim
Submodule
Submodule config/nvim/lazy/mason.nvim added at fc98833b6d
1
config/nvim/lazy/mini.bufremove
Submodule
1
config/nvim/lazy/mini.bufremove
Submodule
Submodule config/nvim/lazy/mini.bufremove added at 285bdac959
1
config/nvim/lazy/neo-tree.nvim
Submodule
1
config/nvim/lazy/neo-tree.nvim
Submodule
Submodule config/nvim/lazy/neo-tree.nvim added at 9b5d67119c
1
config/nvim/lazy/neoconf.nvim
Submodule
1
config/nvim/lazy/neoconf.nvim
Submodule
Submodule config/nvim/lazy/neoconf.nvim added at f630568a4d
1
config/nvim/lazy/none-ls.nvim
Submodule
1
config/nvim/lazy/none-ls.nvim
Submodule
Submodule config/nvim/lazy/none-ls.nvim added at a117163db4
1
config/nvim/lazy/nui.nvim
Submodule
1
config/nvim/lazy/nui.nvim
Submodule
Submodule config/nvim/lazy/nui.nvim added at a0fd35fcbb
1
config/nvim/lazy/nvim-autopairs
Submodule
1
config/nvim/lazy/nvim-autopairs
Submodule
Submodule config/nvim/lazy/nvim-autopairs added at 68f0e5c3da
1
config/nvim/lazy/nvim-cmp
Submodule
1
config/nvim/lazy/nvim-cmp
Submodule
Submodule config/nvim/lazy/nvim-cmp added at 1e1900b076
1
config/nvim/lazy/nvim-colorizer.lua
Submodule
1
config/nvim/lazy/nvim-colorizer.lua
Submodule
Submodule config/nvim/lazy/nvim-colorizer.lua added at 517df88cf2
1
config/nvim/lazy/nvim-dap
Submodule
1
config/nvim/lazy/nvim-dap
Submodule
Submodule config/nvim/lazy/nvim-dap added at 6a5bba0dde
1
config/nvim/lazy/nvim-dap-ui
Submodule
1
config/nvim/lazy/nvim-dap-ui
Submodule
Submodule config/nvim/lazy/nvim-dap-ui added at bc81f8d344
1
config/nvim/lazy/nvim-lspconfig
Submodule
1
config/nvim/lazy/nvim-lspconfig
Submodule
Submodule config/nvim/lazy/nvim-lspconfig added at 185b2af444
1
config/nvim/lazy/nvim-nio
Submodule
1
config/nvim/lazy/nvim-nio
Submodule
Submodule config/nvim/lazy/nvim-nio added at 21f5324bfa
1
config/nvim/lazy/nvim-notify
Submodule
1
config/nvim/lazy/nvim-notify
Submodule
Submodule config/nvim/lazy/nvim-notify added at a3020c2cf4
1
config/nvim/lazy/nvim-treesitter
Submodule
1
config/nvim/lazy/nvim-treesitter
Submodule
Submodule config/nvim/lazy/nvim-treesitter added at f8aaf5ce4e
1
config/nvim/lazy/nvim-treesitter-textobjects
Submodule
1
config/nvim/lazy/nvim-treesitter-textobjects
Submodule
Submodule config/nvim/lazy/nvim-treesitter-textobjects added at 9937e5e356
1
config/nvim/lazy/nvim-ts-autotag
Submodule
1
config/nvim/lazy/nvim-ts-autotag
Submodule
Submodule config/nvim/lazy/nvim-ts-autotag added at a1d526af39
1
config/nvim/lazy/nvim-ts-context-commentstring
Submodule
1
config/nvim/lazy/nvim-ts-context-commentstring
Submodule
Submodule config/nvim/lazy/nvim-ts-context-commentstring added at 1b212c2eee
1
config/nvim/lazy/nvim-ufo
Submodule
1
config/nvim/lazy/nvim-ufo
Submodule
Submodule config/nvim/lazy/nvim-ufo added at 61463090a4
1
config/nvim/lazy/nvim-web-devicons
Submodule
1
config/nvim/lazy/nvim-web-devicons
Submodule
Submodule config/nvim/lazy/nvim-web-devicons added at 4c3a5848ee
1
config/nvim/lazy/nvim-window-picker
Submodule
1
config/nvim/lazy/nvim-window-picker
Submodule
Submodule config/nvim/lazy/nvim-window-picker added at 6382540b2a
1
config/nvim/lazy/plenary.nvim
Submodule
1
config/nvim/lazy/plenary.nvim
Submodule
Submodule config/nvim/lazy/plenary.nvim added at 857c5ac632
1
config/nvim/lazy/promise-async
Submodule
1
config/nvim/lazy/promise-async
Submodule
Submodule config/nvim/lazy/promise-async added at 38a4575da9
1
config/nvim/lazy/resession.nvim
Submodule
1
config/nvim/lazy/resession.nvim
Submodule
Submodule config/nvim/lazy/resession.nvim added at cc819b0489
1
config/nvim/lazy/smart-splits.nvim
Submodule
1
config/nvim/lazy/smart-splits.nvim
Submodule
Submodule config/nvim/lazy/smart-splits.nvim added at ddb23c1a1c
1
config/nvim/lazy/telescope-fzf-native.nvim
Submodule
1
config/nvim/lazy/telescope-fzf-native.nvim
Submodule
Submodule config/nvim/lazy/telescope-fzf-native.nvim added at 1f08ed60ca
1
config/nvim/lazy/telescope.nvim
Submodule
1
config/nvim/lazy/telescope.nvim
Submodule
Submodule config/nvim/lazy/telescope.nvim added at a17d611a0e
1
config/nvim/lazy/todo-comments.nvim
Submodule
1
config/nvim/lazy/todo-comments.nvim
Submodule
Submodule config/nvim/lazy/todo-comments.nvim added at ae0a2afb47
1
config/nvim/lazy/toggleterm.nvim
Submodule
1
config/nvim/lazy/toggleterm.nvim
Submodule
Submodule config/nvim/lazy/toggleterm.nvim added at 50ea089fc5
1
config/nvim/lazy/vim-illuminate
Submodule
1
config/nvim/lazy/vim-illuminate
Submodule
Submodule config/nvim/lazy/vim-illuminate added at 19cb21f513
1
config/nvim/lazy/which-key.nvim
Submodule
1
config/nvim/lazy/which-key.nvim
Submodule
Submodule config/nvim/lazy/which-key.nvim added at fcbf4eea17
12
config/nvim/lua/community.lua
Normal file
12
config/nvim/lua/community.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroCommunity: import any community modules here
|
||||
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
|
||||
-- This guarantees that the specs are processed before any user plugins.
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
{ import = "astrocommunity.pack.lua" },
|
||||
-- import/override with your plugins folder
|
||||
}
|
||||
63
config/nvim/lua/lazy_setup.lua
Normal file
63
config/nvim/lua/lazy_setup.lua
Normal file
@@ -0,0 +1,63 @@
|
||||
require("lazy").setup({
|
||||
{
|
||||
"AstroNvim/AstroNvim",
|
||||
version = "^4", -- Remove version tracking to elect for nightly AstroNvim
|
||||
import = "astronvim.plugins",
|
||||
opts = { -- AstroNvim options must be set here with the `import` key
|
||||
mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up
|
||||
maplocalleader = ",", -- This ensures the localleader key must be configured before Lazy is set up
|
||||
icons_enabled = true, -- Set to false to disable icons (if no Nerd Font is available)
|
||||
pin_plugins = nil, -- Default will pin plugins when tracking `version` of AstroNvim, set to true/false to override
|
||||
update_notifications = true, -- Enable/disable notification about running `:Lazy update` twice to update pinned plugins
|
||||
},
|
||||
},
|
||||
{ import = "community" },
|
||||
{ import = "plugins" },
|
||||
{
|
||||
"David-Kunz/gen.nvim",
|
||||
opts = {
|
||||
model = "mistral", -- The default model to use.
|
||||
quit_map = "q", -- set keymap to close the response window
|
||||
retry_map = "<c-r>", -- set keymap to re-send the current prompt
|
||||
accept_map = "<c-cr>", -- set keymap to replace the previous selection with the last result
|
||||
host = "localhost", -- The host running the Ollama service.
|
||||
port = "11434", -- The port on which the Ollama service is listening.
|
||||
display_mode = "float", -- The display mode. Can be "float" or "split" or "horizontal-split" or "vertical-split".
|
||||
show_prompt = false, -- Shows the prompt submitted to Ollama. Can be true (3 lines) or "full".
|
||||
show_model = false, -- Displays which model you are using at the beginning of your chat session.
|
||||
no_auto_close = false, -- Never closes the window automatically.
|
||||
file = false, -- Write the payload to a temporary file to keep the command short.
|
||||
hidden = false, -- Hide the generation window (if true, will implicitly set `prompt.replace = true`), requires Neovim >= 0.10
|
||||
init = function(options) pcall(io.popen, "ollama serve > /dev/null 2>&1 &") end,
|
||||
-- Function to initialize Ollama
|
||||
command = function(options)
|
||||
local body = {model = options.model, stream = true}
|
||||
return "curl --silent --no-buffer -X POST http://" .. options.host .. ":" .. options.port .. "/api/chat -d $body"
|
||||
end,
|
||||
-- The command for the Ollama service. You can use placeholders $prompt, $model and $body (shellescaped).
|
||||
-- This can also be a command string.
|
||||
-- The executed command must return a JSON object with { response, context }
|
||||
-- (context property is optional).
|
||||
-- list_models = '<omitted lua function>', -- Retrieves a list of model names
|
||||
result_filetype = "markdown", -- Configure filetype of the result buffer
|
||||
debug = false -- Prints errors and the command which is run.
|
||||
}
|
||||
},
|
||||
} --[[@as LazySpec]], {
|
||||
-- Configure any other `lazy.nvim` configuration options here
|
||||
install = { colorscheme = { "astrotheme", "habamax" } },
|
||||
ui = { backdrop = 100 },
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins, add more to your liking
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
} --[[@as LazyConfig]])
|
||||
|
||||
5
config/nvim/lua/plugins/astrocommunity.lua
Normal file
5
config/nvim/lua/plugins/astrocommunity.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
{ import = "astrocommunity.colorscheme.catppuccin" },
|
||||
{ import = "astrocommunity.recipes.neovide" },
|
||||
}
|
||||
74
config/nvim/lua/plugins/astrocore.lua
Normal file
74
config/nvim/lua/plugins/astrocore.lua
Normal file
@@ -0,0 +1,74 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
|
||||
-- Configuration documentation can be found with `:h astrocore`
|
||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
||||
-- as this provides autocomplete and documentation while editing
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrocore",
|
||||
---@type AstroCoreOpts
|
||||
opts = {
|
||||
-- Configure core features of AstroNvim
|
||||
features = {
|
||||
large_buf = { size = 1024 * 256, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
|
||||
autopairs = true, -- enable autopairs at start
|
||||
cmp = true, -- enable completion at start
|
||||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
notifications = true, -- enable notifications at start
|
||||
},
|
||||
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
||||
diagnostics = {
|
||||
virtual_text = true,
|
||||
underline = true,
|
||||
},
|
||||
-- vim options can be configured here
|
||||
options = {
|
||||
opt = { -- vim.opt.<key>
|
||||
relativenumber = false, -- sets vim.opt.relativenumber
|
||||
-- guifont = "Source Code Pro:h14",
|
||||
guifont = "AgaveNerdFont:h16",
|
||||
number = true, -- sets vim.opt.number
|
||||
spell = false, -- sets vim.opt.spell
|
||||
signcolumn = "yes", -- sets vim.opt.signcolumn to yes
|
||||
wrap = false, -- sets vim.opt.wrap
|
||||
},
|
||||
g = { -- vim.g.<key>
|
||||
-- configure global vim variables (vim.g)
|
||||
-- NOTE: `mapleader` and `maplocalleader` must be set in the AstroNvim opts or before `lazy.setup`
|
||||
-- This can be found in the `lua/lazy_setup.lua` file
|
||||
},
|
||||
},
|
||||
-- Mappings can be configured through AstroCore as well.
|
||||
-- NOTE: keycodes follow the casing in the vimdocs. For example, `<Leader>` must be capitalized
|
||||
mappings = {
|
||||
-- first key is the mode
|
||||
n = {
|
||||
-- second key is the lefthand side of the map
|
||||
|
||||
-- navigate buffer tabs
|
||||
["]b"] = { function() require("astrocore.buffer").nav(vim.v.count1) end, desc = "Next buffer" },
|
||||
["[b"] = { function() require("astrocore.buffer").nav(-vim.v.count1) end, desc = "Previous buffer" },
|
||||
|
||||
-- mappings seen under group name "Buffer"
|
||||
["<Leader>bd"] = {
|
||||
function()
|
||||
require("astroui.status.heirline").buffer_picker(
|
||||
function(bufnr) require("astrocore.buffer").close(bufnr) end
|
||||
)
|
||||
end,
|
||||
desc = "Close buffer from tabline",
|
||||
},
|
||||
|
||||
-- tables with just a `desc` key will be registered with which-key if it's installed
|
||||
-- this is useful for naming menus
|
||||
-- ["<Leader>b"] = { desc = "Buffers" },
|
||||
|
||||
-- setting a mapping to false will disable it
|
||||
-- ["<C-S>"] = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
105
config/nvim/lua/plugins/astrolsp.lua
Normal file
105
config/nvim/lua/plugins/astrolsp.lua
Normal file
@@ -0,0 +1,105 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroLSP allows you to customize the features in AstroNvim's LSP configuration engine
|
||||
-- Configuration documentation can be found with `:h astrolsp`
|
||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
||||
-- as this provides autocomplete and documentation while editing
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrolsp",
|
||||
---@type AstroLSPOpts
|
||||
opts = {
|
||||
-- Configuration table of features provided by AstroLSP
|
||||
features = {
|
||||
codelens = true, -- enable/disable codelens refresh on start
|
||||
inlay_hints = false, -- enable/disable inlay hints on start
|
||||
semantic_tokens = true, -- enable/disable semantic token highlighting
|
||||
},
|
||||
-- customize lsp formatting options
|
||||
formatting = {
|
||||
-- control auto formatting on save
|
||||
format_on_save = {
|
||||
enabled = true, -- enable or disable format on save globally
|
||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
||||
-- "go",
|
||||
},
|
||||
ignore_filetypes = { -- disable format on save for specified filetypes
|
||||
-- "python",
|
||||
},
|
||||
},
|
||||
disabled = { -- disable formatting capabilities for the listed language servers
|
||||
-- disable lua_ls formatting capability if you want to use StyLua to format your lua code
|
||||
-- "lua_ls",
|
||||
},
|
||||
timeout_ms = 1000, -- default format timeout
|
||||
-- filter = function(client) -- fully override the default formatting function
|
||||
-- return true
|
||||
-- end
|
||||
},
|
||||
-- enable servers that you already have installed without mason
|
||||
servers = {
|
||||
-- "pyright"
|
||||
},
|
||||
-- customize language server configuration options passed to `lspconfig`
|
||||
---@diagnostic disable: missing-fields
|
||||
config = {
|
||||
-- clangd = { capabilities = { offsetEncoding = "utf-8" } },
|
||||
},
|
||||
-- customize how language servers are attached
|
||||
handlers = {
|
||||
-- a function without a key is simply the default handler, functions take two parameters, the server name and the configured options table for that server
|
||||
-- function(server, opts) require("lspconfig")[server].setup(opts) end
|
||||
|
||||
-- the key is the server that is being setup with `lspconfig`
|
||||
-- rust_analyzer = false, -- setting a handler to false will disable the set up of that language server
|
||||
-- pyright = function(_, opts) require("lspconfig").pyright.setup(opts) end -- or a custom handler function can be passed
|
||||
},
|
||||
-- Configure buffer local auto commands to add when attaching a language server
|
||||
autocmds = {
|
||||
-- first key is the `augroup` to add the auto commands to (:h augroup)
|
||||
lsp_codelens_refresh = {
|
||||
-- Optional condition to create/delete auto command group
|
||||
-- can either be a string of a client capability or a function of `fun(client, bufnr): boolean`
|
||||
-- condition will be resolved for each client on each execution and if it ever fails for all clients,
|
||||
-- the auto commands will be deleted for that buffer
|
||||
cond = "textDocument/codeLens",
|
||||
-- cond = function(client, bufnr) return client.name == "lua_ls" end,
|
||||
-- list of auto commands to set
|
||||
{
|
||||
-- events to trigger
|
||||
event = { "InsertLeave", "BufEnter" },
|
||||
-- the rest of the autocmd options (:h nvim_create_autocmd)
|
||||
desc = "Refresh codelens (buffer)",
|
||||
callback = function(args)
|
||||
if require("astrolsp").config.features.codelens then vim.lsp.codelens.refresh { bufnr = args.buf } end
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- mappings to be set up on attaching of a language server
|
||||
mappings = {
|
||||
n = {
|
||||
-- a `cond` key can provided as the string of a server capability to be required to attach, or a function with `client` and `bufnr` parameters from the `on_attach` that returns a boolean
|
||||
gD = {
|
||||
function() vim.lsp.buf.declaration() end,
|
||||
desc = "Declaration of current symbol",
|
||||
cond = "textDocument/declaration",
|
||||
},
|
||||
["<Leader>uY"] = {
|
||||
function() require("astrolsp.toggles").buffer_semantic_tokens() end,
|
||||
desc = "Toggle LSP semantic highlight (buffer)",
|
||||
cond = function(client)
|
||||
return client.supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens ~= nil
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- A custom `on_attach` function to be run after the default `on_attach` function
|
||||
-- takes two parameters `client` and `bufnr` (`:h lspconfig-setup`)
|
||||
on_attach = function(client, bufnr)
|
||||
-- this would disable semanticTokensProvider for all clients
|
||||
-- client.server_capabilities.semanticTokensProvider = nil
|
||||
end,
|
||||
},
|
||||
}
|
||||
39
config/nvim/lua/plugins/astroui.lua
Normal file
39
config/nvim/lua/plugins/astroui.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroUI provides the basis for configuring the AstroNvim User Interface
|
||||
-- Configuration documentation can be found with `:h astroui`
|
||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
||||
-- as this provides autocomplete and documentation while editing
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astroui",
|
||||
---@type AstroUIOpts
|
||||
opts = {
|
||||
-- change colorscheme
|
||||
colorscheme = "astrodark",
|
||||
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
|
||||
highlights = {
|
||||
init = { -- this table overrides highlights in all themes
|
||||
-- Normal = { bg = "#000000" },
|
||||
},
|
||||
astrodark = { -- a table of overrides/changes when applying the astrotheme theme
|
||||
-- Normal = { bg = "#000000" },
|
||||
},
|
||||
},
|
||||
-- Icons can be configured throughout the interface
|
||||
icons = {
|
||||
-- configure the loading of the lsp in the status line
|
||||
LSPLoading1 = "⠋",
|
||||
LSPLoading2 = "⠙",
|
||||
LSPLoading3 = "⠹",
|
||||
LSPLoading4 = "⠸",
|
||||
LSPLoading5 = "⠼",
|
||||
LSPLoading6 = "⠴",
|
||||
LSPLoading7 = "⠦",
|
||||
LSPLoading8 = "⠧",
|
||||
LSPLoading9 = "⠇",
|
||||
LSPLoading10 = "⠏",
|
||||
},
|
||||
},
|
||||
}
|
||||
18
config/nvim/lua/plugins/catppuccin.lua
Normal file
18
config/nvim/lua/plugins/catppuccin.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
opts = {
|
||||
dim_inactive = { enabled = true, percentage = 0.25 },
|
||||
highlight_overrides = {
|
||||
mocha = function(c)
|
||||
return {
|
||||
Normal = { bg = c.mantle },
|
||||
Comment = { fg = "#7687a0" },
|
||||
["@tag.attribute"] = { style = {} },
|
||||
}
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
13
config/nvim/lua/plugins/kubectl.lua
Normal file
13
config/nvim/lua/plugins/kubectl.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
'Ramilito/kubectl.nvim',
|
||||
opts = {},
|
||||
cmd = { 'Kubectl', 'Kubectx', 'Kubens' },
|
||||
keys = {
|
||||
{ '<leader>k', '<cmd>lua require("kubectl").toggle()<cr>' },
|
||||
{ '<C-k>', '<Plug>(kubectl.kill)', ft = 'k8s_*' },
|
||||
{ '7', '<Plug>(kubectl.view_nodes)', ft = 'k8s_*' },
|
||||
{ '8', '<Plug>(kubectl.view_overview)', ft = 'k8s_*' },
|
||||
{ '<C-t>', '<Plug>(kubectl.view_top)', ft = 'k8s_*' },
|
||||
},
|
||||
}
|
||||
|
||||
39
config/nvim/lua/plugins/mason.lua
Normal file
39
config/nvim/lua/plugins/mason.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize Mason plugins
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
-- use mason-lspconfig to configure LSP installations
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
-- overrides `require("mason-lspconfig").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
-- add more arguments for adding more language servers
|
||||
},
|
||||
},
|
||||
},
|
||||
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
|
||||
{
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
-- overrides `require("mason-null-ls").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
-- add more arguments for adding more null-ls sources
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
-- overrides `require("mason-nvim-dap").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"python",
|
||||
-- add more arguments for adding more debuggers
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
24
config/nvim/lua/plugins/none-ls.lua
Normal file
24
config/nvim/lua/plugins/none-ls.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize None-ls sources
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
opts = function(_, opts)
|
||||
-- opts variable is the default configuration table for the setup function call
|
||||
-- local null_ls = require "null-ls"
|
||||
|
||||
-- Check supported formatters and linters
|
||||
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||
|
||||
-- Only insert new sources, do not replace the existing ones
|
||||
-- (If you wish to replace, use `opts.sources = {}` instead of the `list_insert_unique` function)
|
||||
opts.sources = require("astrocore").list_insert_unique(opts.sources, {
|
||||
-- Set a formatter
|
||||
-- null_ls.builtins.formatting.stylua,
|
||||
-- null_ls.builtins.formatting.prettier,
|
||||
})
|
||||
end,
|
||||
}
|
||||
15
config/nvim/lua/plugins/treesitter.lua
Normal file
15
config/nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize Treesitter
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"vim",
|
||||
-- add more arguments for adding more treesitter parsers
|
||||
},
|
||||
},
|
||||
}
|
||||
85
config/nvim/lua/plugins/user.lua
Normal file
85
config/nvim/lua/plugins/user.lua
Normal file
@@ -0,0 +1,85 @@
|
||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- You can also add or configure plugins by creating files in this `plugins/` folder
|
||||
-- Here are some examples:
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
|
||||
-- == Examples of Adding Plugins ==
|
||||
|
||||
"andweeb/presence.nvim",
|
||||
{
|
||||
"ray-x/lsp_signature.nvim",
|
||||
event = "BufRead",
|
||||
config = function() require("lsp_signature").setup() end,
|
||||
},
|
||||
|
||||
-- == Examples of Overriding Plugins ==
|
||||
|
||||
-- customize alpha options
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
opts = function(_, opts)
|
||||
-- customize the dashboard header
|
||||
opts.section.header.val = {
|
||||
" █████ ███████ ████████ ██████ ██████",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"███████ ███████ ██ ██████ ██ ██",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"██ ██ ███████ ██ ██ ██ ██████",
|
||||
" ",
|
||||
" ███ ██ ██ ██ ██ ███ ███",
|
||||
" ████ ██ ██ ██ ██ ████ ████",
|
||||
" ██ ██ ██ ██ ██ ██ ██ ████ ██",
|
||||
" ██ ██ ██ ██ ██ ██ ██ ██ ██",
|
||||
" ██ ████ ████ ██ ██ ██",
|
||||
}
|
||||
return opts
|
||||
end,
|
||||
},
|
||||
|
||||
-- You can disable default plugins as follows:
|
||||
{ "max397574/better-escape.nvim", enabled = false },
|
||||
|
||||
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
config = function(plugin, opts)
|
||||
require "astronvim.plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
||||
local luasnip = require "luasnip"
|
||||
luasnip.filetype_extend("javascript", { "javascriptreact" })
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
config = function(plugin, opts)
|
||||
require "astronvim.plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||
-- add more custom autopairs configuration such as custom rules
|
||||
local npairs = require "nvim-autopairs"
|
||||
local Rule = require "nvim-autopairs.rule"
|
||||
local cond = require "nvim-autopairs.conds"
|
||||
npairs.add_rules(
|
||||
{
|
||||
Rule("$", "$", { "tex", "latex" })
|
||||
-- don't add a pair if the next character is %
|
||||
:with_pair(cond.not_after_regex "%%")
|
||||
-- don't add a pair if the previous character is xxx
|
||||
:with_pair(
|
||||
cond.not_before_regex("xxx", 3)
|
||||
)
|
||||
-- don't move right when repeat character
|
||||
:with_move(cond.none())
|
||||
-- don't delete if the next character is xx
|
||||
:with_del(cond.not_after_regex "xx")
|
||||
-- disable adding a newline when you press <cr>
|
||||
:with_cr(cond.none()),
|
||||
},
|
||||
-- disable for .vim files, but it work for another filetypes
|
||||
Rule("a", "a", "-vim")
|
||||
)
|
||||
end,
|
||||
},
|
||||
}
|
||||
18
config/nvim/lua/polish.lua
Normal file
18
config/nvim/lua/polish.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- This will run last in the setup process and is a good place to configure
|
||||
-- things like custom filetypes. This is just pure lua so anything that doesn't
|
||||
-- fit in the normal config locations above can go here
|
||||
|
||||
-- Set up custom filetypes
|
||||
vim.filetype.add {
|
||||
extension = {
|
||||
foo = "fooscript",
|
||||
},
|
||||
filename = {
|
||||
["Foofile"] = "fooscript",
|
||||
},
|
||||
pattern = {
|
||||
["~/%.config/foo/.*"] = "fooscript",
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"download_timestamp":1744870127,"checksums":{"registry.json":"d2a55f609b635196e0ef489745796d66dcf2e32c8cd986555c45c7177b94a306","registry.json.zip":"5d460649298f575b61d6148ea771cc198d11eb8f8dc9fd361d73e62f101ae6ac"},"version":"2025-04-17-pumped-fog"}
|
||||
File diff suppressed because it is too large
Load Diff
6
config/nvim/neovim.yml
Normal file
6
config/nvim/neovim.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
base: lua51
|
||||
|
||||
globals:
|
||||
vim:
|
||||
any: true
|
||||
8
config/nvim/selene.toml
Normal file
8
config/nvim/selene.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
std = "neovim"
|
||||
|
||||
[rules]
|
||||
global_usage = "allow"
|
||||
if_same_then_else = "allow"
|
||||
incorrect_standard_library_use = "allow"
|
||||
mixed_table = "allow"
|
||||
multiple_statements = "allow"
|
||||
1
config/nvim/session/Last Session.json
Normal file
1
config/nvim/session/Last Session.json
Normal file
@@ -0,0 +1 @@
|
||||
{"buffers":[{"name":"/Users/michi/Downloads/cortex_install.md","options":{"readonly":false,"buflisted":true,"bufhidden":"","binary":false,"modifiable":true,"filetype":"markdown"},"last_pos":[1,0],"loaded":true}],"quickfix":[],"global":{"width":156,"height":51,"options":{"cmdheight":0},"cwd":"/"},"tab_scoped":false,"astrocore":{"bufnrs":{"/Users/michi/Downloads/cortex_install.md":2},"current_buf":2,"tabs":[[2]]},"tabs":[{"wins":["leaf",{"cursor":[13,1],"bufname":"/Users/michi/Downloads/cortex_install.md","current":true,"height":49,"options":{"scrollbind":false,"diff":false,"winfixheight":false,"winfixwidth":false,"previewwindow":false},"width":156}],"options":{"cmdheight":0}}]}
|
||||
Reference in New Issue
Block a user