summaryrefslogtreecommitdiff
path: root/public/nvim/.nvim
diff options
context:
space:
mode:
authorChristian Segundo2023-12-20 14:47:02 +0100
committerChristian Segundo2023-12-20 14:47:02 +0100
commit4926211bdd12793242274e2e4d407b1153da9841 (patch)
tree2c438e33b005d101fdc9324e55d9e9daad49f4bf /public/nvim/.nvim
parent651a3f8956104265c197a1155704600aa0bb5bf8 (diff)
downloaddotfiles-4926211bdd12793242274e2e4d407b1153da9841.tar.gz
add c
Diffstat (limited to 'public/nvim/.nvim')
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/c.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/public/nvim/.nvim/lua/plugins/lang/c.lua b/public/nvim/.nvim/lua/plugins/lang/c.lua
new file mode 100644
index 0000000..5b54a9d
--- /dev/null
+++ b/public/nvim/.nvim/lua/plugins/lang/c.lua
@@ -0,0 +1,20 @@
+return {
+ {
+ "nvim-treesitter/nvim-treesitter",
+ opts = function(_, opts)
+ if type(opts) == "table" then
+ opts.ensure_installed = opts.ensure_installed or {}
+ vim.list_extend(opts.ensure_installed, { "c" })
+ end
+ end,
+ },
+ {
+ "neovim/nvim-lspconfig",
+ opts = function(_, opts)
+ if type(opts) == "table" then
+ opts.servers = opts.servers or {}
+ opts.servers.clangd = {}
+ end
+ end,
+ },
+}