finally fix indentation on neovim so that it just works like on vscode
This commit is contained in:
parent
d2bde072f1
commit
528bdae845
@ -5,8 +5,15 @@ vim.g.moonflyTransparent = true
|
||||
-- set termguicolors, needed for the colorizer
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt["tabstop"] = 4
|
||||
vim.opt["shiftwidth"] = 4
|
||||
vim.opt["tabstop"] = 2
|
||||
vim.opt["shiftwidth"] = 2
|
||||
vim.opt["autoindent"] = false
|
||||
vim.opt["smartindent"] = false
|
||||
-- vim.opt["cindent"] = true
|
||||
vim.opt["expandtab"] = true
|
||||
|
||||
-- vim.opt["softtabstop"] = 4
|
||||
-- vim.opt["smarttab"] = true
|
||||
|
||||
vim.wo.relativenumber = true
|
||||
|
||||
@ -34,14 +41,5 @@ vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
end,
|
||||
})
|
||||
|
||||
require("flutter-tools").setup({
|
||||
dev_log = {
|
||||
enabled = true,
|
||||
filter = nil, -- optional callback to filter the log
|
||||
notify_errors = false, -- notify the user if the is an error whilst running
|
||||
open_cmd = "tabedit",
|
||||
},
|
||||
})
|
||||
|
||||
-- activate exrc to allow to run per project custom configs from .nvim.lua
|
||||
vim.opt.exrc = true
|
||||
|
@ -2,6 +2,7 @@ return {
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
opts = {},
|
||||
config = function()
|
||||
-- requires termguicolors
|
||||
vim.opt.termguicolors = true
|
||||
require("colorizer").setup()
|
||||
end,
|
||||
|
@ -5,5 +5,39 @@ return {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"stevearc/dressing.nvim", -- optional for vim.ui.select
|
||||
},
|
||||
config = true,
|
||||
config = function()
|
||||
require("flutter-tools").setup({
|
||||
dev_log = {
|
||||
enabled = true,
|
||||
filter = nil, -- optional callback to filter the log
|
||||
notify_errors = false, -- notify the user if the is an error whilst running
|
||||
open_cmd = "tabedit",
|
||||
},
|
||||
widget_guides = {
|
||||
enabled = true,
|
||||
},
|
||||
closing_tags = {
|
||||
enabled = true,
|
||||
},
|
||||
lsp = {
|
||||
color = {
|
||||
enabled = true,
|
||||
background = false,
|
||||
foreground = false,
|
||||
background_color = { r = 19, g = 17, b = 24 },
|
||||
|
||||
virtual_text = true,
|
||||
virtual_text_str = "■",
|
||||
},
|
||||
settings = {
|
||||
showTodos = true,
|
||||
completeFunctionCalls = true,
|
||||
analysisExcludedFolders = {
|
||||
vim.fn.expand("$HOME/.pub-cache"),
|
||||
},
|
||||
lineLength = 120,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
@ -14,4 +14,10 @@ return {
|
||||
require("Comment").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nmac427/guess-indent.nvim",
|
||||
config = function()
|
||||
require("guess-indent").setup({})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@ -13,5 +13,12 @@ return {
|
||||
},
|
||||
auto_install = true,
|
||||
},
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user