repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: delete NvimTree and update theme

dba8da84d268b72059cbc6108e889faff975890b

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

neovim/lua/keybinds.lua

Modified
30 30 ["<F10>"] = { [[<CMD>PluginsSync<CR>]], "Sync Plugins" },
31 31 ["<F11>"] = { [[<CMD>PluginsCompile<CR>]], "Compile Plugins" },
32 32 f = {
33 - name = "file operations",
33 + name = "File Operations",
34 34 f = { [[<CMD>Telescope find_files<CR>]], "Find File" },
35 35 b = { [[<CMD>Telescope buffers<CR>]], "Open a Buffer" },
36 36 r = { [[<CMD>Telescope oldfiles<CR>]], "Open Recent File" },
37 37 e = { [[<CMD>NvimTreeToggle<CR>]], "Toggle File Explorer" },
39 39 g = {
40 - name = "goto navigation",
41 - t = { [[<CMD>TroubleToggle<CR>]], "Toggle Trouble Window" },
40 + name = "Goto Navigation",
41 + T = { [[<CMD>TroubleToggle<CR>]], "Toggle Trouble Window" },
42 42 x = {
43 43 "<CMD>lua require'spawn'('" .. opener_program .. "',{vim.fn.expand('<cfile>')})<CR>",
44 44 "Open Url Under Cursor",
47 47 a = {
48 - name = "code operations",
49 - o = { [[<CMD>SymbolsOutline<CR>]], "Toggle Outline" },
48 + name = "Code Operations",
49 + O = { [[<CMD>SymbolsOutline<CR>]], "Toggle Outline" },
51 51 }, {
52 52 prefix = "<LEADER>",

neovim/lua/lsp.lua

Modified
183 183 -- Zig LSP
184 184 -- FIXME: ZLS is very tied to the specific version of the zig compiler one uses.
185 185 -- we need to build our own version for 0.8.0 because it is not done upstream yet
186 - -- lsp.zls.setup({
187 - -- on_attach = integrate_into_neovim,
188 - -- capabilites = capabilities,
189 - -- })
186 + lsp.zls.setup({
187 + on_attach = integrate_into_neovim,
188 + capabilites = capabilities,
189 + })
191 191 -- LLVM Clang LSP
192 192 lsp.clangd.setup({
194 194 capabilites = capabilities,
197 + -- Rust LSP
198 + -- this will automatically start and configure nvim-lsp rust-analyzer
199 + require("rust-tools").setup({ server = {
200 + on_attach = integrate_into_neovim,
201 + capabilities = capabilities,
202 + } })
197 204 -- JSON LSP
198 205 lsp.jsonls.setup({
199 206 on_attach = integrate_into_neovim,

neovim/lua/plugins.lua

Modified
42 42 -- Packer can manage itself
43 43 use({ "wbthomason/packer.nvim", opt = true })
45 - -- Nice file tree browser
46 - use({
47 - "kyazdani42/nvim-tree.lua",
48 - requires = { "kyazdani42/nvim-web-devicons", opt = true },
49 - config = function()
50 - vim.g.nvim_tree_side = "left"
51 - vim.g.nvim_tree_width = 42
52 - vim.g.nvim_tree_auto_open = 1
53 - vim.g.nvim_tree_ignore_ft = { "cheatsheet" }
54 - -- disable git because slow
55 - vim.g.nvim_tree_git_hl = 0
56 - vim.g.nvim_tree_gitignore = 0
57 - vim.g.nvim_tree_show_icons = {
58 - git = 0,
59 - folders = 1,
60 - files = 1,
61 - }
62 - end,
63 - })
65 45 -- Display popup with possible keybindings to a command
66 46 use({
67 47 "folke/which-key.nvim",
68 48 config = function()
69 - local key_labels = { ["<space>"] = "SPACE", ["<cr>"] = "ENTER", ["<tab>"] = "TAB", ["."] = "DOT" }
49 + local key_labels = { ["<SPACE>"] = "SPACE", ["<CR>"] = "ENTER", ["<TAB>"] = "TAB", ["."] = "DOT" }
70 50 for f_key_number = 1, 12 do
71 51 key_labels["<F" .. f_key_number .. ">"] = "F" .. f_key_number
85 + -- Treesitter syntax highlighting for justfiles
86 + use{"IndianBoy42/tree-sitter-just", config = function()
87 + require"tree-sitter-just".setup({["local"] = true})
88 + end}
105 90 -- NVIM API for defining color schemes
106 91 use({
107 92 "tjdevries/colorbuddy.vim",
196 - -- Fuzzy matcher
197 - use({
198 - "nvim-telescope/telescope.nvim",
199 - requires = { "nvim-lua/popup.nvim", "nvim-lua/plenary.nvim" },
200 - })
202 181 -- Type :<number> to jump to line numbers
204 183 "nacro90/numb.nvim",
228 207 vim.lsp.handlers["workspace/symbol"] = require("lsputil.symbols").workspace_handler
230 209 requires = {
210 + -- dependecies of telescope
231 211 -- extensions to the std lib
232 212 "nvim-lua/plenary.nvim",
213 + -- popup windows
214 + "nvim-lua/popup.nvim",
215 + -- Fuzzy matcher
216 + "nvim-telescope/telescope.nvim",
217 + -- debugging adapter -- like LSP but for debuggers
218 + "mfussenegger/nvim-dap",
219 + -- advanced rust integration
220 + "simrat39/rust-tools.nvim",
233 221 -- Preprepared collection of glue code for neovim lsp-client and thrid party lsp servers.
234 222 "neovim/nvim-lspconfig",
235 223 -- Completions support, that integrates advanced nvim features (LSP+treesitter)

neovim/lua/theme/treesitter_colors.lua

Modified
17 17 Group.new("TSRepeat", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword)
18 18 Group.new("TSLabel", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword + styles.bold)
19 19 Group.new("TSException", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword)
20 + Group.new("TSFuncMacro", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword)
21 + Group.new("TSInclude", groups.TSKeyword, groups.TSKeyword, groups.TSKeyword)
21 23 Group.new("TSMethod", colors.normal, colors.none, styles.NONE)
40 42 Group.new("TSFuncBuiltin", colors.normal, colors.none, styles.NONE)
41 43 Group.new("TSStructure", colors.normal, colors.none, styles.NONE)
42 44 Group.new("TSTagDelimiter", colors.normal, colors.none, styles.NONE)
43 - Group.new("TSFuncMacro", colors.normal, colors.none, styles.NONE)
44 - Group.new("TSInclude", colors.normal, colors.none, styles.NONE)
45 45 Group.new("TSError", colors.error, colors.none, styles.NONE)
46 46 Group.new("TSField", colors.normal, colors.none, styles.NONE)
47 47 Group.new("TSParameter", colors.normal, colors.none, styles.NONE)