Поправил кучку недостатков в neovim
This commit is contained in:
parent
28a7b1f678
commit
74e201e92c
11 changed files with 444 additions and 234 deletions
|
@ -82,6 +82,7 @@ vim.api.nvim_create_autocmd("BufEnter", {
|
|||
return
|
||||
end
|
||||
vim.schedule(function()
|
||||
vim.cmd("nohlsearch")
|
||||
local treeapi = require("nvim-tree.api")
|
||||
treeapi.tree.find_file({
|
||||
update_root = false,
|
||||
|
@ -134,6 +135,17 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
|||
require("nvim-tree.api").tree.open()
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "go",
|
||||
callback = function()
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.tabstop = 4
|
||||
vim.opt_local.shiftwidth = 4
|
||||
vim.opt_local.autoindent = true
|
||||
vim.opt_local.smartindent = true
|
||||
vim.opt_local.cindent = false
|
||||
end,
|
||||
})
|
||||
-- vim.api.nvim_create_autocmd("InsertEnter", {
|
||||
-- pattern = "*",
|
||||
-- command = "set norelativenumber",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue