3 Commits

Author SHA1 Message Date
97c897fc41 treesitter fix 2026-04-10 10:34:31 +02:00
3924ec874d fixed cpp build path 2026-04-10 10:34:19 +02:00
ec12a493bc new and working cmake lsp 2026-04-10 10:33:56 +02:00
3 changed files with 4 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ return {
local project_name = vim.fn.fnamemodify(cwd, ':t')
-- 3. Construct your specific build path
local auto_path = cwd .. '/build/bin/Debug-linux-x86_64/' .. project_name .. '/' .. project_name
local auto_path = cwd .. '/build/bin/Debug-Linux-x86_64/' .. project_name .. '/' .. project_name
-- 4. Check if it actually exists. If it does, run it instantly!
if vim.fn.filereadable(auto_path) == 1 then
@@ -145,7 +145,7 @@ return {
end
-- 5. Fallback: If it couldn't find it, pop open an input box so you can type it manually
return vim.fn.input('Path to executable: ', cwd .. '/build/bin/Debug-linux-x86_64/', 'file')
return vim.fn.input('Path to executable: ', cwd .. '/build/bin/Debug-Linux-x86_64/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,

View File

@@ -306,8 +306,6 @@ return {
'bash-language-server',
'clang-format',
'clangd',
'cmake-language-server',
'cmakelang',
'cpplint',
'cpptools',
'css-lsp',
@@ -316,6 +314,7 @@ return {
'delve',
'emmet-language-server',
'goimports-reviser',
'neocmakelsp',
'golangci-lint',
'golangci-lint-langserver',
'gopls',

View File

@@ -3,7 +3,7 @@ return {
'nvim-treesitter/nvim-treesitter',
branch = 'main',
build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
main = 'nvim-treesitter.config', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
ensure_installed = {