Compare commits

...

3 Commits

Author SHA1 Message Date
Max Luebke
884e2c688d Enable c/c++ development 2025-01-20 16:37:25 +01:00
Max Luebke
354fb73928 Add copilot 2025-01-20 16:37:13 +01:00
Max Luebke
71ab2fef74 Add Nvim autopairs 2025-01-20 16:24:02 +01:00
2 changed files with 16 additions and 1 deletions

View File

@ -632,7 +632,9 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
clangd = {},
clangd = {
cmd = { 'clangd', '--offset-encoding=utf-16' },
},
-- gopls = {},
-- pyright = {},
-- rust_analyzer = {},
@ -677,6 +679,7 @@ require('lazy').setup({
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code
'clang-format', -- Used to format C/C++ files
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
@ -729,6 +732,8 @@ require('lazy').setup({
end,
formatters_by_ft = {
lua = { 'stylua' },
c = { 'clang-format' },
cpp = { 'clang-format' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--

View File

@ -35,4 +35,14 @@ return {
require('nvim-tree').setup {}
end,
},
{
'windwp/nvim-autopairs',
event = 'InsertEnter',
config = true,
-- use opts = {} for passing setup options
-- this is equivalent to setup({}) function
},
{
'github/copilot.vim',
},
}