summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-09-22 17:17:43 +0200
committerJoe <rrbo@proton.me>2023-09-22 17:17:43 +0200
commit7c4fb99aa0a460d0ce13efc44117643304cb8a46 (patch)
tree506a248243f75e79bace2a2a2080a061d266b368
parentup (diff)
downloaddotfiles-bsd-7c4fb99aa0a460d0ce13efc44117643304cb8a46.tar.gz
dotfiles-bsd-7c4fb99aa0a460d0ce13efc44117643304cb8a46.tar.bz2
dotfiles-bsd-7c4fb99aa0a460d0ce13efc44117643304cb8a46.tar.xz
dotfiles-bsd-7c4fb99aa0a460d0ce13efc44117643304cb8a46.tar.zst
dotfiles-bsd-7c4fb99aa0a460d0ce13efc44117643304cb8a46.zip
up
-rw-r--r--.config/nvim/after/plugin/lsp.lua16
-rw-r--r--.config/nvim/after/plugin/lualine.lua4
2 files changed, 17 insertions, 3 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua
index 9f84855..d28a0f9 100644
--- a/.config/nvim/after/plugin/lsp.lua
+++ b/.config/nvim/after/plugin/lsp.lua
@@ -24,7 +24,6 @@ require('mason-lspconfig').setup({
'eslint',
'rust_analyzer',
'lua_ls',
- 'ccls',
'gopls',
'arduino_language_server',
'bashls',
@@ -97,3 +96,18 @@ cmp.setup {
})
}
}
+
+lsp.configure('ccls', {
+ force_setup = true,
+ init_options = {
+ compilationDatabaseDirectory = 'build',
+ index = {
+ threads = 0,
+ },
+ clang = {
+ excludeArgs = { '-frounding-math' }
+ }
+ }
+})
+
+lsp.setup()
diff --git a/.config/nvim/after/plugin/lualine.lua b/.config/nvim/after/plugin/lualine.lua
index f3d2fe7..3a73a0d 100644
--- a/.config/nvim/after/plugin/lualine.lua
+++ b/.config/nvim/after/plugin/lualine.lua
@@ -226,8 +226,8 @@ ins_right {
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_active_clients()
if next(clients) == nil then
- -- icon = ''
- return
+ icon = ''
+ return ''
end
for _, client in ipairs(clients) do
local filetypes = client.config.filetypes