Skip to content

Commit 2b5743e

Browse files
committed
More neovim config tidying
1 parent 290a40e commit 2b5743e

7 files changed

Lines changed: 20 additions & 19 deletions

File tree

config/nvim/init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ local colorscheme = "nordfox"
77

88
-- These need to happen before plugins have loaded:
99
require("options").configure()
10-
require("signs").configure()
1110

1211
-- Install lazy.nvim from git if it's not already installed.
1312
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"

config/nvim/lazy-lock.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"nightfox.nvim": { "branch": "main", "commit": "df75a6a94910ae47854341d6b5a6fd483192c0eb" },
2020
"none-ls.nvim": { "branch": "main", "commit": "8691504118b252d64fc5023a104aedd100ab754a" },
2121
"nui.nvim": { "branch": "main", "commit": "322978c734866996274467de084a95e4f9b5e0b1" },
22-
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
2322
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
2423
"nvim-lsp-file-operations": { "branch": "master", "commit": "223aca86b737dc66e9c51ebcda8788a8d9cc6cf2" },
2524
"nvim-lspconfig": { "branch": "master", "commit": "92166b89ab4b3d60f24e58170cac53b7141fd032" },
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
return {
2+
-- Close buffers without closing the window that contains them.
3+
-- https://github.com/famiu/bufdelete.nvim
24
"famiu/bufdelete.nvim",
5+
6+
-- Handle opening file:line.
7+
-- https://github.com/bogado/file-line
38
"bogado/file-line",
9+
10+
-- https://github.com/lewis6991/gitsigns.nvim
411
{ "lewis6991/gitsigns.nvim", config = true },
5-
{ "windwp/nvim-autopairs", config = true },
12+
13+
-- https://github.com/windwp/nvim-autopairs
14+
-- { "windwp/nvim-autopairs", config = true },
15+
16+
-- https://github.com/kylechui/nvim-surround
617
{ "kylechui/nvim-surround", config = true },
718
}

config/nvim/lua/plugins/lsp/lspconfig-config.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ return function()
1919
lspconfig.tsserver.setup({ capabilities = capabilities })
2020
end
2121

22+
-- Set the diagnostic signs shown in the gutter to match lualine's.
23+
vim.fn.sign_define("DiagnosticSignError", { text = "󰅚 ", texthl = "DiagnosticSignError" })
24+
vim.fn.sign_define("DiagnosticSignWarn", { text = "󰀪 ", texthl = "DiagnosticSignWarn" })
25+
vim.fn.sign_define("DiagnosticSignInfo", { text = "󰋽 ", texthl = "DiagnosticSignInfo" })
26+
vim.fn.sign_define("DiagnosticSignHint", { text = "󰌶", texthl = "DiagnosticSignHint" })
27+
2228
-- Language servers can be configured on a per-project basis using exrc.
2329
-- See the .nvim.lua file in .dotfiles for an example.
2430
end

config/nvim/lua/plugins/navigation.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ local neo_tree_spec = {
1313
bind_to_cwd = false,
1414
default_component_configs = {
1515
diagnostics = {
16-
-- The neo-tree docs say these should be read from the signs we
17-
-- define in signs.lua, but it doesn't seem to work so we need to
18-
-- set them here.
16+
-- Set the diagnostic signs to match lualine's.
1917
symbols = { error = "󰅚 ", hint = "󰌶", info = "󰋽 ", warn = "󰀪 " },
2018
},
2119
indent = { with_markers = false },

config/nvim/lua/plugins/treesitter.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ local treesitter_spec = {
5555

5656
local refactoring_spec = {
5757
"ThePrimeagen/refactoring.nvim",
58-
dependencies = {
59-
"nvim-lua/plenary.nvim",
60-
treesitter_spec,
61-
},
58+
dependencies = { "nvim-lua/plenary.nvim", treesitter_spec },
6259
config = function()
6360
require("refactoring").setup()
6461
end,

config/nvim/lua/signs.lua

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)