summaryrefslogtreecommitdiff
path: root/.config/nvim/config.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/config.lua')
-rw-r--r--.config/nvim/config.lua39
1 files changed, 30 insertions, 9 deletions
diff --git a/.config/nvim/config.lua b/.config/nvim/config.lua
index d1103df..6ff78f0 100644
--- a/.config/nvim/config.lua
+++ b/.config/nvim/config.lua
@@ -18,9 +18,9 @@ options.builtin.dashboard.active = true
options.builtin.terminal.active = true
options.builtin.telescope.active = true
options.builtin.bufferline.active = true
--- options.builtin.nvimtree.active = true
options.builtin.lualine.active = true
options.builtin.lualine.style = "dark"
+options.builtin.dap.active = false
-- Whichkey
options.builtin.which_key.mappings.l.d = { "<cmd>TroubleToggle<cr>", "Diagnostics" }
@@ -59,6 +59,35 @@ options.builtin.treesitter.autotag.enable = false
options.builtin.treesitter.playground.enable = false
options.builtin.treesitter.indent.disable = { "python" }
+-- LSP Linters and formatters
+options.lang.json.formatters = {
+ {
+ exe = "prettier",
+ },
+}
+
+options.lang.lua.formatters = {
+ {
+ exe = "stylua",
+ },
+}
+
+options.lang.python.formatters = {
+ {
+ exe = "black",
+ },
+}
+
+options.lang.python.linters = {
+ {
+ exe = "flake8",
+ },
+}
+
+options.lang.sh.linters = { { exe = "shellcheck", args = { "--sverity", "error" } } }
+
+-- Extra plugings
+
options.plugins = {
{
"folke/trouble.nvim",
@@ -89,14 +118,6 @@ options.plugins = {
end,
},
- -- {
- -- "ray-x/lsp_signature.nvim",
- -- event = "InsertEnter",
- -- config = function()
- -- require("extra.lsp_signature").config()
- -- end,
- -- },
-
{
"unblevable/quick-scope",
config = function()