moreeeee updates . ..

This commit is contained in:
Jimmy Bates 2024-04-21 04:50:58 -07:00
parent 0ed010f399
commit b94345a27a
7 changed files with 30 additions and 10 deletions

View file

@ -147,9 +147,13 @@ return { -- LSP Configuration & Plugins
clangd = {
cmd = {
'clangd',
'--offset-encoding=UTF-8',
'--query-driver=/bin/clang-tidy,/usr/bin/**/clang-*,/bin/clang,/bin/clang++,/usr/bin/gcc,/usr/bin/g++',
'--clang-tidy',
'--clang-tidy-checks=*',
'--style=file ~/.config/nvim/clang-format',
'--background-index',
},
capabilities = capabilities,
},
-- gopls = {},
pyright = {},
@ -199,6 +203,7 @@ return { -- LSP Configuration & Plugins
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code
'cpplint',
'clangd',
'clang-format',
'codelldb',

View file

@ -2,6 +2,16 @@ return {
'akinsho/toggleterm.nvim',
version = '*',
config = true,
init = function()
local opts = { buffer = 0 }
vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts)
vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts)
vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts)
end,
keys = {
{
'<leader>to',
@ -10,7 +20,8 @@ return {
},
{
'<A-i>',
'<Cmd>ToggleTermToggle<CR>',
'<Cmd>ToggleTerm<CR>',
mode = { 'n', 't' },
},
{
'<leader>tt',