Skip to content

Commit

Permalink
tf?
Browse files Browse the repository at this point in the history
  • Loading branch information
RevisedJDUDE2 committed Jun 23, 2024
1 parent b703594 commit 0363a95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions coc-settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"languageserver": {
"clangd": {
"command": "clangd",
"args": ["--query-driver=C:/msys64/mingw64/bin/g++.exe", "--compile-commands-dir=./build"],
"rootPatterns": ["compile_flags.txt", "compile_commands.json"],
"args": ["--query-driver=C:/msys64/mingw64/bin/g++.exe", "--compile-commands-dir."],
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"]
}
}
4 changes: 2 additions & 2 deletions lua/keymaps.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>e", "<cmd>:NvimTreeFocus<cr>")
vim.keymap.set("n", "<leader>n", "<cmd>:NvimTreeFocus<cr>")
vim.keymap.set( {"n", "v"}, "<leader>w", "<cmd>:w!<cr>")
vim.keymap.set("n", "<leader>f", "<cmd>:NvimTreeToggle<cr>")
vim.keymap.set("n", "<leader>nc", "<cmd>:NvimTreeToggle<cr>")
vim.keymap.set("n", "<leader>lw", "<C-w>l")
vim.keymap.set("n", "<c-y>", "<cmd>:y +<cr>")
-- FOR BABAR NVIM
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/coc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vim.opt.writebackup = false

-- Having longer updatetime (default is 4000 ms = 4s) leads to noticeable
-- delays and poor user experience
vim.opt.updatetime = 300
vim.opt.updatetime = 100

-- Always show the signcolumn, otherwise it would shift the text each time
-- diagnostics appeared/became resolved
Expand All @@ -35,7 +35,7 @@ keyset("i", "<S-TAB>", [[coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"]], opts)

-- Make <CR> to accept selected completion item or notify coc.nvim to format
-- <C-g>u breaks current undo, please make your own choice
keyset("i", "<cr>", [[coc#pum#visible() ? coc#pum#confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"]], opts)
keyset("i", "<S-space>", [[coc#pum#visible() ? coc#pum#confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"]], opts)

-- Use <c-j> to trigger snippets
keyset("i", "<c-j>", "<Plug>(coc-snippets-expand-jump)")
Expand Down

0 comments on commit 0363a95

Please sign in to comment.