Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Dec 23, 2024
1 parent 94381fe commit abdd6ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions colors/solarized.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- violet #6c71c4
local colors = {
base04 = '#00202b',
base03 = '#002838',
base03 = '#002837',
base02 = '#073642',
base01 = '#586e75',
base00 = '#657b83',
Expand Down Expand Up @@ -125,7 +125,7 @@ local function load_solarized()

-- Indentmini
shl('IndentLine', { link = 'Comment' })
shl('IndentLineCurrent', { link = 'Comment' })
shl('IndentLineCurrent', { fg = '#084352' })

-- GitSigns
shl('GitSignsAdd', { fg = colors.green, bg = colors.base03 })
Expand Down
3 changes: 1 addition & 2 deletions lua/internal/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ au('BufEnter', {
callback = function()
require('keymap')
require('internal.buffer')
vim.cmd.packadd('nohlsearch')
end,
desc = 'Lazy load my keymap and buffer relate commands and defaul opt plugins',
})
Expand Down Expand Up @@ -89,7 +88,7 @@ au('LspDetach', {
callback = function(args)
local client_id = args.data.client_id
local client = vim.lsp.get_clients({ client_id = client_id })[1]
if not vim.tbl_isempty(client.attached_buffers) then
if not client or not vim.tbl_isempty(client.attached_buffers) then
return
end
reset_timer()
Expand Down
5 changes: 2 additions & 3 deletions lua/modules/lsp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lspconfig.lua_ls.setup({
})

lspconfig.clangd.setup({
cmd = { 'clangd', '--background-index' },
cmd = { 'clangd', '--background-index', '--header-insertion=never' },
init_options = { fallbackFlags = { vim.bo.filetype == 'cpp' and '-std=c++23' or nil } },
root_dir = function(fname)
return lspconfig.util.root_pattern(unpack({
Expand Down Expand Up @@ -82,14 +82,13 @@ lspconfig.rust_analyzer.setup({
})

local servers = {
'pyright',
'basedpyright',
'bashls',
'zls',
'cmake',
'jsonls',
'ts_ls',
'eslint',
'ruff',
-- 'basics_ls',
}

Expand Down

0 comments on commit abdd6ef

Please sign in to comment.