mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
nvim updates
This commit is contained in:
parent
6a0a27714b
commit
e819c2a7b6
@ -83,7 +83,8 @@ require("packer").startup(function(use)
|
|||||||
extensions = {
|
extensions = {
|
||||||
Brewfile = "brewfile",
|
Brewfile = "brewfile",
|
||||||
muttrc = "muttrc",
|
muttrc = "muttrc",
|
||||||
hcl = "terraform",
|
tfvars = "hcl",
|
||||||
|
tf = "hcl",
|
||||||
},
|
},
|
||||||
literal = {
|
literal = {
|
||||||
Caskfile = "brewfile",
|
Caskfile = "brewfile",
|
||||||
@ -155,7 +156,7 @@ require("packer").startup(function(use)
|
|||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("null-ls").config({
|
require("null-ls").setup({
|
||||||
sources = {
|
sources = {
|
||||||
require("null-ls").builtins.formatting.stylua,
|
require("null-ls").builtins.formatting.stylua,
|
||||||
require("null-ls").builtins.formatting.black.with({
|
require("null-ls").builtins.formatting.black.with({
|
||||||
@ -175,7 +176,6 @@ require("packer").startup(function(use)
|
|||||||
-- require("null-ls").builtins.diagnostics.pylint,
|
-- require("null-ls").builtins.diagnostics.pylint,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("lspconfig")["null-ls"].setup({})
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -277,9 +277,21 @@ require("packer").startup(function(use)
|
|||||||
run = ":TSUpdate",
|
run = ":TSUpdate",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"hcl",
|
||||||
|
"python",
|
||||||
|
"lua",
|
||||||
|
"nix",
|
||||||
|
"fish",
|
||||||
|
"toml",
|
||||||
|
"yaml",
|
||||||
|
"json",
|
||||||
|
},
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
})
|
})
|
||||||
|
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
||||||
|
parser_config.hcl.used_by = { "tf" }
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -360,7 +372,9 @@ require("packer").startup(function(use)
|
|||||||
enable_persistant_history = true,
|
enable_persistant_history = true,
|
||||||
default_register = { "+", '"' },
|
default_register = { "+", '"' },
|
||||||
keys = {
|
keys = {
|
||||||
i = { paste = "<c-v>" },
|
telescope = {
|
||||||
|
i = { paste = "<c-v>" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require("telescope").load_extension("neoclip")
|
require("telescope").load_extension("neoclip")
|
||||||
|
Loading…
Reference in New Issue
Block a user