From bf492d97c464b6fc574ddaeefa778576da0e6eb8 Mon Sep 17 00:00:00 2001 From: yyasha Date: Sun, 4 Aug 2024 01:43:04 +0300 Subject: [PATCH] add clang lsp --- hypr/hyprland.conf | 2 +- nvim/lua/chadrc.lua | 2 +- nvim/lua/configs/lspconfig.lua | 2 ++ nvim/lua/plugins/init.lua | 21 ++++++++++++--------- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 40d72bf..f7c2f9d 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -147,7 +147,7 @@ $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Q, exec, $terminal bind = $mainMod, C, killactive, -bind = $mainMod, M, exit, +# bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, bind = $mainMod, W, exec, $menu diff --git a/nvim/lua/chadrc.lua b/nvim/lua/chadrc.lua index 231e668..05857e3 100644 --- a/nvim/lua/chadrc.lua +++ b/nvim/lua/chadrc.lua @@ -10,7 +10,7 @@ M.ui = { statusline = { theme = "default" - } + }, -- hl_override = { -- Comment = { italic = true }, diff --git a/nvim/lua/configs/lspconfig.lua b/nvim/lua/configs/lspconfig.lua index c47bd56..8c6efcb 100644 --- a/nvim/lua/configs/lspconfig.lua +++ b/nvim/lua/configs/lspconfig.lua @@ -47,6 +47,8 @@ lspconfig.gopls.setup({ }, }) +lspconfig.clangd.setup{} + -- typescript -- lspconfig.tsserver.setup { -- on_attach = on_attach, diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index f169a27..7a8b224 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -42,15 +42,18 @@ return { -- {"sindrets/diffview.nvim", lazy = false}, - -- { - -- "williamboman/mason.nvim", - -- opts = { - -- ensure_installed = { - -- "lua-language-server", "stylua", - -- "html-lsp", "css-lsp" , "prettier" - -- }, - -- }, - -- }, + { + "williamboman/mason.nvim", + opts = { + ensure_installed = { + "lua-language-server", + "clangd", + "stylua", + "gopls", + "golangci-lint", + }, + }, + }, -- -- { -- "nvim-treesitter/nvim-treesitter",