diff options
Diffstat (limited to '.config/nvim/after')
-rw-r--r-- | .config/nvim/after/plugin/lsp.lua | 16 | ||||
-rw-r--r-- | .config/nvim/after/plugin/lualine.lua | 4 |
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 |