neovim: fix a bunch of small issues
- snack explorer now opens on the neovim is open at instead of the go module - remove obsolete linting stuff
This commit is contained in:
1 parent
58bec27062
commit
881a5dadff
3 files changed
+14
-3
No files matched your search
@@ -15,8 +15,9 @@ local function toggle_or_focus_explorer()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- No explorer open; open one at the project root
|
-- No explorer open; open one at the actual working directory.
|
||||||
Snacks.explorer({ cwd = LazyVim.root() })
|
-- (inside the explorer, <c-r> toggles between project cwd and module root)
|
||||||
|
Snacks.explorer()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>e", toggle_or_focus_explorer, { desc = "Explorer (toggle/focus)" })
|
vim.keymap.set("n", "<leader>e", toggle_or_focus_explorer, { desc = "Explorer (toggle/focus)" })
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-lint",
|
||||||
|
optional = true,
|
||||||
|
opts = {
|
||||||
|
linters_by_ft = {
|
||||||
|
sql = { "sqlfluff" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -6,7 +6,6 @@ return {
|
|||||||
gopls = {
|
gopls = {
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
experimentalWorkspaceModule = true,
|
|
||||||
hints = {
|
hints = {
|
||||||
assignVariableTypes = false,
|
assignVariableTypes = false,
|
||||||
-- compositeLiteralFields = false,
|
-- compositeLiteralFields = false,
|
||||||
|
|||||||
Reference in new issue
Block a user