commit
This commit is contained in:
parent
2515473a1e
commit
608fbb0d71
@ -7,6 +7,8 @@ map("n", "<C-right>", "<C-i>", { desc = "LSP Forward" })
|
||||
map("v", "<C-c>", '"+y', { desc = "Copy selected" })
|
||||
map({ "i", "n" }, "<C-v>", '"+p', { desc = "Past" })
|
||||
|
||||
map("n", "<C-s>", ":w<CR>", { desc = "Save file" })
|
||||
|
||||
-- neo-tree
|
||||
map("n", "<leader>e", ":Neotree<CR>", { desc = "nvimtree focus window" })
|
||||
map("n", "<leader>g", ":Neotree git_status float<CR>", { desc = "open gis status" })
|
||||
|
@ -1,11 +1,14 @@
|
||||
local opt = vim.opt
|
||||
local o = vim.o
|
||||
local g = vim.g
|
||||
local wo = vim.wo
|
||||
|
||||
opt.fillchars = { eob = " " }
|
||||
|
||||
g.mapleader = " "
|
||||
|
||||
wo.signcolumn = "auto:2-3"
|
||||
|
||||
opt.tabstop = 4
|
||||
|
||||
o.laststatus = 3
|
||||
|
@ -4,6 +4,7 @@ return {
|
||||
event = "User FilePost",
|
||||
opts = function()
|
||||
return {
|
||||
sign_priority = 100,
|
||||
signs = {
|
||||
delete = { text = "" },
|
||||
changedelete = { text = "" },
|
||||
|
@ -53,8 +53,12 @@ return {
|
||||
|
||||
cmp.setup({
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
completion = cmp.config.window.bordered({
|
||||
winhighlight = "Normal:Normal,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
}),
|
||||
documentation = cmp.config.window.bordered({
|
||||
winhighlight = "Normal:Normal,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
}),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
|
15
lua/plugins/treesitter.lua
Normal file
15
lua/plugins/treesitter.lua
Normal file
@ -0,0 +1,15 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = { "go", "lua", "luadoc", "printf", "vim", "vimdoc" },
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
use_languagetree = true,
|
||||
},
|
||||
|
||||
indent = { enable = true },
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user