dotfiles/nvim/.config/nvim/after/ftplugin/c.lua
Sanchayan Maity 84f729f3c7
nvim: after/ftplugin/C: Do not run gst-indent after buffer save
This seems to interfere with git signs tracking among other things.
While at it move the remaining configuration to Lua.
2024-03-30 16:47:04 +05:30

10 lines
339 B
Lua

local lsp_utils = require('lsp-utils')
local clangd_config = lsp_utils.clangd_config()
vim.lsp.start(clangd_config)
vim.bo.makeprg = 'meson compile -C build'
vim.keymap.set('n', 'gh', ":ClangdSwitchSourceHeader<CR>", { noremap=true, buffer=0 })
vim.keymap.set('n', 'gq', ":!gst-indent %<CR>" , { noremap=true, buffer=0 })