Compare commits
3 commits
8c4676927d
...
fbc414535b
| Author | SHA1 | Date | |
|---|---|---|---|
| fbc414535b | |||
| 9646edf680 | |||
| c430bf66d2 |
3 changed files with 10 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ local function active_lsps()
|
||||||
|
|
||||||
local preview_client = attached_clients[1]
|
local preview_client = attached_clients[1]
|
||||||
|
|
||||||
return ('LSP: %s (%d)'):format(preview_client.name, #attached_clients)
|
return ('LSPs: (%d)'):format(#attached_clients)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function diff_source()
|
local function diff_source()
|
||||||
|
|
@ -28,8 +28,6 @@ lualine.setup {
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
{'b:gitsigns_head', icon = ''},
|
|
||||||
{'diff', source = diff_source},
|
|
||||||
'diagnostics',
|
'diagnostics',
|
||||||
active_lsps
|
active_lsps
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -64,3 +64,6 @@ vim.opt.mouse = ''
|
||||||
|
|
||||||
-- python interpreter
|
-- python interpreter
|
||||||
vim.g.python3_host_prog = '/usr/bin/python3'
|
vim.g.python3_host_prog = '/usr/bin/python3'
|
||||||
|
|
||||||
|
-- hide concealed text completely unless it has a custom replacement character defined
|
||||||
|
vim.o.conceallevel = 2
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
local telescope = require('telescope')
|
local telescope = require('telescope')
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
|
local actions = require('telescope.actions')
|
||||||
|
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
|
@ -34,5 +35,10 @@ telescope.setup({
|
||||||
prompt_position = 'bottom',
|
prompt_position = 'bottom',
|
||||||
vertical = { width = 0.8, height = 0.9 }
|
vertical = { width = 0.8, height = 0.9 }
|
||||||
},
|
},
|
||||||
|
mappings = {
|
||||||
|
n = {
|
||||||
|
['<C-l>'] = actions.send_to_loclist + actions.open_loclist,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue