XQD63RAJU5FUZXMP2WXIHHNFFSEP7TNHYZFO3DCPPYFBHWLXW6DAC
DEVZGQYDMMD2ZMJKQX5M72L4LTYAZEIVEDXSYNIMHMRBT5CJIERAC
ULKBUZEBFCZOZ5BTUW6262LG5DK6BUOVN6STTKCFLZFG3EE6PFPAC
QWJ5FBQ7ZL75GTXLYEVPTLK7AEMBMBEYE7536WFLGINTG332LAIAC
AD3GGMJYYDKYXMTBCQK7IHKTVSM75XFTBHZSMFXFAQYWSPRHSCBAC
PS5PXTHFTQDM4WVNMXEJUPLQVGQWULYJ5IVAXZ7LJX4ZUSICUKDAC
XCR34YPGC3GY7CKQTQX4WUEKLRLAZKNSUPWOKGD5HUHK2RN7RKGAC
UNMO22GQRCYHMIXPFTZTQVVPCOFSBVU2YV5CKLO72ZRDZ2AJ46WQC
JTTWOADMNTGEUL5TBJSC5PEXSW6GMBZLY6TWLN2DHV26REVMZOZAC
YSKR5RAG56GA3T554X2S5QNFQSHAYFXU3QT5QMU5A5OUGLPAMJ2AC
HWLVSY6UL5VDMK7NLQB2LJYEHV6KNKP4QIUWJKYTKKYW3L5ZLQBAC
lua require 'dap-config'
local dap = require 'dap'
dap.adapters.python = {
type = 'executable',
command = 'python3',
args = {'-m', 'debugpy.adapter'}
}
dap.adapters.cpp = {
type = 'executable',
name = 'lldb-cpp',
command = 'lldb-vscode-11',
args = {},
attach = {
pidProperty = "processId",
pidSelect = "ask"
},
env = {
LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY = "YES"
}
}
buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)
buf_set_keymap(bufnr, 'n', 'g0', '<cmd>lua vim.lsp.buf.document_symbol()<cr>', opts)
buf_set_keymap(bufnr, 'n', 'gW', '<cmd>lua vim.lsp.buf.workspace_symbol()<cr>', opts)
buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua require\'telescope.builtin\'.lsp_references()<cr>', opts)
buf_set_keymap(bufnr, 'n', 'g0', '<cmd>lua require\'telescope.builtin\'.lsp_document_symbols()<cr>', opts)
buf_set_keymap(bufnr, 'n', 'gw', '<cmd>lua require\'telescope.builtin\'.lsp_workspace_symbols()<cr>', opts)
-- buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)
-- buf_set_keymap(bufnr, 'n', 'g0', '<cmd>lua vim.lsp.buf.document_symbol()<cr>', opts)
-- buf_set_keymap(bufnr, 'n', 'gW', '<cmd>lua vim.lsp.buf.workspace_symbol()<cr>', opts)
buf_set_keymap(bufnr, 'n', '<localleader>d', '<cmd>lua vim.lsp.util.show_line_diagnostics()<cr>', opts)
buf_set_keymap(bufnr, 'n', '<localleader>d', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<cr>', opts)
buf_set_keymap(bufnr, 'n', '<localleader>a', '<cmd>lua vim.lsp.buf.code_action()<cr>', opts)
require'nvim-lightbulb'.update_lightbulb {
sign = {
enabled = true,
-- Priority of the gutter sign
priority = 100,
text = 'A'
},
float = {
enabled = false,
-- Text to show in the popup float
text = "💡",
-- Available keys for window options:
-- - height of floating window
-- - width of floating window
-- - wrap_at character to wrap at for computing height
-- - max_width maximal width of floating window
-- - max_height maximal height of floating window
-- - pad_left number of columns to pad contents at left
-- - pad_right number of columns to pad contents at right
-- - pad_top number of lines to pad contents at top
-- - pad_bottom number of lines to pad contents at bottom
-- - offset_x x-axis offset of the floating window
-- - offset_y y-axis offset of the floating window
-- - anchor corner of float to place at the cursor (NW, NE, SW, SE)
-- - winblend transparency of the window (0-100)
win_opts = {},
},
virtual_text = {
enabled = false,
-- Text to show at virtual text
text = "💡",
}
}
local lualine = require 'lualine'
local options = lualine.options
options.theme = 'onedark'
options.section_separators = nil
options.component_separators = nil
options.icons_enabled = false
lualine.extensions = {'fzf'}
lualine.status()
local diagnostics = {
'diagnostics',
sources = {'nvim_lsp'},
color_error = '#e06c75',
color_warn = '#e5c07b'
}
local lualine = require 'lualine'.setup {
options = {
theme = 'onedark',
section_separators = {},
component_separators = {},
icons_enabled = false
},
sections = {
lualine_a = {'mode'},
lualine_b = {'diff', 'branch'},
lualine_c = {diagnostics, 'filename'},
lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_y = {'progress'},
lualine_z = {'location'},
},
extensions = {'fugitive', 'fzf'}
}