04012023
This commit is contained in:
parent
0c50fe1718
commit
b699566b51
3 changed files with 8 additions and 4 deletions
|
@ -5,6 +5,7 @@ mapkey("<leader>bn", "bnext", "n") -- Next buffer
|
||||||
mapkey("<leader>bp", "bprevious", "n") -- Prev buffer
|
mapkey("<leader>bp", "bprevious", "n") -- Prev buffer
|
||||||
mapkey("<leader>bb", "e #", "n") -- Switch to Other Buffer
|
mapkey("<leader>bb", "e #", "n") -- Switch to Other Buffer
|
||||||
mapkey("<leader>`", "e #", "n") -- Switch to Other Buffer
|
mapkey("<leader>`", "e #", "n") -- Switch to Other Buffer
|
||||||
|
mapkey("<leader>bc", "bd", "n") -- Close the buffer
|
||||||
|
|
||||||
-- Directory Navigatio}n
|
-- Directory Navigatio}n
|
||||||
mapkey("<leader>m", "NvimTreeFocus", "n")
|
mapkey("<leader>m", "NvimTreeFocus", "n")
|
||||||
|
|
|
@ -3,7 +3,7 @@ local config = function()
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
local diagnostic_signs = require("utils.icons").diagnostic_signs
|
local diagnostic_signs = require("utils.icons").diagnostic_signs
|
||||||
|
|
||||||
lsp_zero.on_attach(function(client, bufnr)
|
lsp_zero.on_attach(function(_, bufnr)
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = false, -- disable virtual text
|
virtual_text = false, -- disable virtual text
|
||||||
update_in_insert = true,
|
update_in_insert = true,
|
||||||
|
@ -58,13 +58,13 @@ local config = function()
|
||||||
require('mason-lspconfig').setup({
|
require('mason-lspconfig').setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bashls",
|
"bashls",
|
||||||
-- "tsserver",
|
"tsserver",
|
||||||
"pyright",
|
"pyright",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"jsonls",
|
"jsonls",
|
||||||
"clangd",
|
"clangd",
|
||||||
"ruff_lsp",
|
"ruff_lsp",
|
||||||
"biome"
|
"biome" -- will install for formatting only
|
||||||
},
|
},
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
handlers = {
|
handlers = {
|
||||||
|
@ -84,13 +84,15 @@ local config = function()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
biome = function() -- use tsserver instead
|
||||||
|
return {}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
||||||
require("luasnip/loaders/from_vscode").lazy_load()
|
require("luasnip/loaders/from_vscode").lazy_load()
|
||||||
-- require("luasnip/loaders/from_vscode").load()
|
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
snippet = {
|
snippet = {
|
||||||
|
|
|
@ -72,6 +72,7 @@ alias py='python'
|
||||||
## Open Suse
|
## Open Suse
|
||||||
alias zup='sudo zypper dup'
|
alias zup='sudo zypper dup'
|
||||||
alias zin='sudo zypper in'
|
alias zin='sudo zypper in'
|
||||||
|
alias rbf='sudo systemctl reboot --firmware-setup'
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
# Preferred editor for local and remote sessions
|
||||||
export EDITOR='vim'
|
export EDITOR='vim'
|
||||||
|
|
Loading…
Add table
Reference in a new issue