Skip to content

Commit 413ece8

Browse files
nvim: code cleanup
1 parent 222f328 commit 413ece8

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

.config/cvim/settings/nvim_dap.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ local function config()
33
-- - https://tamerlan.dev/a-guide-to-debugging-applications-in-neovim/
44
-- - https://www.johntobin.ie/blog/debugging_in_neovim_with_nvim-dap/
55
-- - https://dhruvasagar.dev/posts/neovim-java-ide/
6+
-- - https://github.com/theHamsta/nvim-dap-virtual-text
7+
-- - https://www.lazyvim.org/extras/dap/core
8+
-- - https://github.com/rcarriga/nvim-dap-ui?tab=readme-ov-file
69
end
710

811
return {config = config}

.config/cvim/settings/nvim_lspconfig.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ local function setup_keybinding_when_lspserver_attach_to_buffer()
5050
vim.keymap.set({ 'n', 'v' }, '<space>ca', vim.lsp.buf.code_action, opts)
5151
-- Lists all the references
5252
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
53+
-- Set some key bindings conditional on server capabilities
5354
vim.keymap.set('n', '<space>f', function()
54-
vim.lsp.buf.format { async = true }
55+
vim.lsp.buf.format { async = true }
5556
end, opts)
57+
58+
-- FIXME: Continue with https://github.com/jdhao/nvim-config/blob/4d8ef868ad0ef7f6433d91332aa6649186d9a2fb/lua/config/lsp.lua
5659
end,
5760
})
5861
end

.config/cvim/settings/nvim_treesitter.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ local function config()
2424
highlight = {
2525
enable = true,
2626
additional_vim_regex_highlighting = false,
27+
disable = { 'help' } -- List of language to disable for
2728
},
2829
indent = {
2930
enable = true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
" Use latest npx versiot to retrieve node.js
22
let g:copilot_npx = 'latest'
3+
4+
" FIXME: https://docs.astronvim.com/v4/recipes/rooter/

0 commit comments

Comments
 (0)