[vim] lualine
This commit is contained in:
parent
d498a4fd18
commit
0984ac2838
4 changed files with 22 additions and 17 deletions
1
.vim/lua/lualine_setup.lua
Normal file
1
.vim/lua/lualine_setup.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
require('lualine').setup()
|
||||||
|
|
@ -106,9 +106,11 @@ local function pyright_custom_diagnostic(a, params, client_id, c, config)
|
||||||
vim.lsp.diagnostic.on_publish_diagnostics(a, params, client_id, c, config)
|
vim.lsp.diagnostic.on_publish_diagnostics(a, params, client_id, c, config)
|
||||||
end
|
end
|
||||||
|
|
||||||
nvim_lsp.pyright.setup({ on_attach = function(client, bufnr)
|
nvim_lsp.pyright.setup({
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(pyright_custom_diagnostic, diagnostic_options)
|
on_attach = function(client, bufnr)
|
||||||
end })
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(pyright_custom_diagnostic, diagnostic_options)
|
||||||
|
end
|
||||||
|
})
|
||||||
--nvim_lsp.pyright.setup({ on_attach = on_attach })
|
--nvim_lsp.pyright.setup({ on_attach = on_attach })
|
||||||
--nvim_lsp.pylsp.setup({
|
--nvim_lsp.pylsp.setup({
|
||||||
--on_attach = on_attach,
|
--on_attach = on_attach,
|
||||||
|
|
@ -387,17 +389,17 @@ require('trouble').setup {
|
||||||
jump = { "o", "<tab>" }, -- jump to the diagnostic or open / close folds
|
jump = { "o", "<tab>" }, -- jump to the diagnostic or open / close folds
|
||||||
--open_split = { "<c-x>" }, -- open buffer in new split
|
--open_split = { "<c-x>" }, -- open buffer in new split
|
||||||
--open_vsplit = { "<c-v>" }, -- open buffer in new vsplit
|
--open_vsplit = { "<c-v>" }, -- open buffer in new vsplit
|
||||||
open_tab = {}, -- open buffer in new tab
|
open_tab = {}, -- open buffer in new tab
|
||||||
jump_close = { "<cr>" }, -- jump to the diagnostic and close the list
|
jump_close = { "<cr>" }, -- jump to the diagnostic and close the list
|
||||||
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
|
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
|
||||||
toggle_preview = "P", -- toggle auto_preview
|
toggle_preview = "P", -- toggle auto_preview
|
||||||
hover = "K", -- opens a small popup with the full multiline message
|
hover = "K", -- opens a small popup with the full multiline message
|
||||||
preview = "p", -- preview the diagnostic location
|
preview = "p", -- preview the diagnostic location
|
||||||
close_folds = { "zM", "zm" }, -- close all folds
|
close_folds = { "zM", "zm" }, -- close all folds
|
||||||
open_folds = { "zR", "zr" }, -- open all folds
|
open_folds = { "zR", "zr" }, -- open all folds
|
||||||
toggle_fold = { "zA", "za" }, -- toggle fold of current file
|
toggle_fold = { "zA", "za" }, -- toggle fold of current file
|
||||||
previous = "k", -- previous item
|
previous = "k", -- previous item
|
||||||
next = "j" -- next item
|
next = "j" -- next item
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -510,9 +512,9 @@ require 'nvim-treesitter.configs'.setup {
|
||||||
"python",
|
"python",
|
||||||
"query",
|
"query",
|
||||||
"rust",
|
"rust",
|
||||||
"svelte",
|
|
||||||
"terraform",
|
"terraform",
|
||||||
"toml",
|
"toml",
|
||||||
|
"tsx",
|
||||||
"typescript",
|
"typescript",
|
||||||
"vim",
|
"vim",
|
||||||
"yaml",
|
"yaml",
|
||||||
|
|
@ -549,7 +551,7 @@ require 'nvim-treesitter.configs'.setup {
|
||||||
playground = {
|
playground = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = {},
|
disable = {},
|
||||||
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
|
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
|
||||||
persist_queries = false, -- Whether the query persists across vim sessions
|
persist_queries = false, -- Whether the query persists across vim sessions
|
||||||
keybindings = {
|
keybindings = {
|
||||||
toggle_query_editor = 'o',
|
toggle_query_editor = 'o',
|
||||||
|
|
@ -668,3 +670,4 @@ end
|
||||||
|
|
||||||
require("murdock")
|
require("murdock")
|
||||||
require("lir_setup")
|
require("lir_setup")
|
||||||
|
require("lualine_setup")
|
||||||
|
|
|
||||||
5
.vimrc
5
.vimrc
|
|
@ -143,8 +143,9 @@ Plug 'sjbach/lusty'
|
||||||
"Plug 'w0rp/ale'
|
"Plug 'w0rp/ale'
|
||||||
"Plug 'airblade/vim-gitgutter'
|
"Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'mhinz/vim-signify'
|
Plug 'mhinz/vim-signify'
|
||||||
Plug 'vim-airline/vim-airline'
|
"Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
"Plug 'vim-airline/vim-airline-themes'
|
||||||
|
Plug 'nvim-lualine/lualine.nvim'
|
||||||
"Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
"Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
"Plug 'junegunn/fzf.vim'
|
"Plug 'junegunn/fzf.vim'
|
||||||
Plug 'airblade/vim-rooter'
|
Plug 'airblade/vim-rooter'
|
||||||
|
|
|
||||||
2
.yarnrc
2
.yarnrc
|
|
@ -2,5 +2,5 @@
|
||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
lastUpdateCheck 1664156115452
|
lastUpdateCheck 1711242871592
|
||||||
prefix "/home/barak/.yarn"
|
prefix "/home/barak/.yarn"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue