diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-07-20 11:22:46 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-07-20 11:22:46 +0200 |
| commit | 1062f08a519bc17e847df6f18e93193877dfbf6e (patch) | |
| tree | c6acba7ef53992f1a11292c7f34a736f14c51581 | |
| parent | 03eb44293762bbbe7459b91a4c7bdf23e62a5bf6 (diff) | |
| download | dotfiles-1062f08a519bc17e847df6f18e93193877dfbf6e.tar.gz dotfiles-1062f08a519bc17e847df6f18e93193877dfbf6e.tar.bz2 dotfiles-1062f08a519bc17e847df6f18e93193877dfbf6e.zip | |
Add neotree and glow plugins to neovim
| -rw-r--r-- | config/alacritty/alacritty.linux.yml | 2 | ||||
| -rw-r--r-- | config/fish/config.fish | 3 | ||||
| -rw-r--r-- | config/git/config.linux | 4 | ||||
| -rw-r--r-- | config/mimeapps.list | 2 | ||||
| -rw-r--r-- | config/nvim/lua/plugins.lua | 83 | ||||
| -rw-r--r-- | config/zsh/.zshrc | 1 |
6 files changed, 81 insertions, 14 deletions
diff --git a/config/alacritty/alacritty.linux.yml b/config/alacritty/alacritty.linux.yml index 5a9140c..01cdc50 100644 --- a/config/alacritty/alacritty.linux.yml +++ b/config/alacritty/alacritty.linux.yml @@ -9,7 +9,7 @@ env: # font font: - size: 9.0 + size: 11.0 offset: x: 0 y: 0 diff --git a/config/fish/config.fish b/config/fish/config.fish index ac67f57..54e6317 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -18,6 +18,9 @@ set -gx PATH "$PATH:$HOME/.local/bin" set -gx PATH "$PATH:$HOME/git/odin" set -gx PATH "$PATH:$HOME/git/ols" +# ESP32 rust toolchain +. "$HOME/export-esp.sh" + # applications set -gx EDITOR 'nvim' set -gx TERMINAL 'alacritty' diff --git a/config/git/config.linux b/config/git/config.linux index 1e93196..6a34386 100644 --- a/config/git/config.linux +++ b/config/git/config.linux @@ -17,8 +17,8 @@ prompt = false [mergetool "vimdiff"] cmd = "nvim -d $MERGED $LOCAL $BASE $REMOTE -c 'wincmd J | wincmd ='" -[commit] - gpgsign = true +; [commit] +; gpgsign = true [init] defaultBranch = master [difftool "bat"] diff --git a/config/mimeapps.list b/config/mimeapps.list index 9198139..1b2f842 100644 --- a/config/mimeapps.list +++ b/config/mimeapps.list @@ -8,7 +8,7 @@ # text/x-shellscript=text.desktop; # x-scheme-handler/magnet=torrent.desktop; # application/x-bittorrent=torrent.desktop; -x-scheme-handler/mailto=st-mutt.desktop; +x-scheme-handler/mailto=brave-browser.desktop # text/plain=text.desktop; application/postscript=zathura.desktop; application/pdf=zathura.desktop; diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index f5f22fc..f2d1367 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -7,6 +7,31 @@ return require("packer").startup(function() use "romainl/vim-cool" -- only highlight search matches when searching use "lukas-reineke/indent-blankline.nvim" + use { + "ellisonleao/glow.nvim", + config = function() require("glow").setup() end + } + + use { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + requires = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", + "MunifTanjim/nui.nvim", + -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information + }, + config = function() + require("neo-tree").setup({ + window = { + mappings = { + ["<c-x>"] = "open_split", + ["<c-v>"] = "open_vsplit",} + }, + }) + end, + } + -- use { -- "lewis6991/satellite.nvim", -- config = function () @@ -14,12 +39,12 @@ return require("packer").startup(function() -- end -- } - use { - 'andymass/vim-matchup', - setup = function() - vim.g.matchup_matchparen_offscreen = { method = "popup" } - end - } + -- use { + -- 'andymass/vim-matchup', + -- setup = function() + -- vim.g.matchup_matchparen_offscreen = { method = "popup" } + -- end + -- } -- Put arguments on multiple lines use { @@ -126,7 +151,6 @@ return require("packer").startup(function() "BufWritePre", { callback = go_import_callback, pattern = "*.go", group = augroup } ) - -- lspconfig.clangd.setup { on_attach = on_attach } lspconfig.rust_analyzer.setup { on_attach = on_attach } -- need python-lsp-server and pyls-flake8 lspconfig.pylsp.setup { @@ -172,7 +196,7 @@ return require("packer").startup(function() lspconfig.hls.setup { on_attach = on_attach } -- opam install ocaml-lsp-server lspconfig.ocamllsp.setup { on_attach = on_attach } - lspconfig.clangd.setup { on_attach = on_attach } + lspconfig.clangd.setup { on_attach = on_attach, cmd = {"clangd", "-header-insertion=never"} } -- pacman -S zls lspconfig.zls.setup{} -- pacman -S yaml-language-server @@ -190,7 +214,9 @@ return require("packer").startup(function() ["http://json.schemastore.org/kustomization"] = "kustomization.{yml,yaml}", ["http://json.schemastore.org/ansible-playbook"] = "*play*.{yml,yaml}", ["http://json.schemastore.org/chart"] = "Chart.{yml,yaml}", - ["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}", + -- ["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}", + ["https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json"] = "*gitlab-ci*.{yml,yaml}", + ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "*docker-compose*.{yml,yaml}", ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}", }, @@ -312,6 +338,42 @@ return require("packer").startup(function() end } + use { + "mfussenegger/nvim-dap", + requires = { + "rcarriga/nvim-dap-ui", + "nvim-telescope/telescope-dap.nvim", + "mfussenegger/nvim-dap-python", + }, + config = function() + local dap = require("dap") + require("dap-python").setup() + vim.keymap.set("n", "<F5>", ":lua require'dap'.continue()<CR>") + vim.keymap.set("n", "<F10>", ":lua require'dap'.step_over()<CR>") + vim.keymap.set("n", "<F11>", ":lua require'dap'.step_into()<CR>") + vim.keymap.set("n", "<F12>", ":lua require'dap'.step_out()<CR>") + vim.keymap.set("n", "<leader>b", ":lua require'dap'.toogle_breakpoint()<CR>") + -- vim.keymap.set("n", "<leader>B", ":lua require'dap'.toogle_breakpoint()<CR>") + vim.keymap.set("n", "<leader>dr", ":lua require'dap'.repl_open()<CR>") + + dap.adapters.gdb = { + type = "executable", + command = "gdb", + args = {"-i", "dap"}, + } + dap.configurations.c = { + { + name = "Launch", + type = "gdb", + request = "launch", + program = function() + return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") + end + }, + } + end + } + -- comment text objects use { "numToStr/Comment.nvim", @@ -395,6 +457,7 @@ return require("packer").startup(function() "c", "commonlisp", "cpp", + "cuda", "fish", "glsl", "go", @@ -488,7 +551,7 @@ return require("packer").startup(function() use { "lewis6991/gitsigns.nvim", - tag = 'release', + -- tag = 'release', config = function() require("gitsigns").setup { signcolumn = false, diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 2144d16..3b091f4 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -109,3 +109,4 @@ if [ "$(uname)" = 'Linux' ] && grep -q Arch /etc/os-release 2> /dev/null then . /usr/share/doc/pkgfile/command-not-found.zsh fi +. "/home/charles/.local/share/cargo/env" |
