new file: .gitignore

new file:   ftplugin/yaml.lua
	modified:   init.lua
	modified:   lua/config.lua
	modified:   lua/keybinds.lua
	modified:   lua/lsp.lua
	modified:   lua/plugins.lua
	deleted:    plugin/packer_compiled.lua
This commit is contained in:
2021-11-23 07:27:28 -06:00
parent 90a317966d
commit 8500f6e932
8 changed files with 60 additions and 249 deletions
+11 -1
View File
@@ -71,7 +71,7 @@ require("nvim-treesitter.configs").setup {
-------------
require("lualine").setup {
options = {theme = "onedark", icons_enabled = true},
options = {theme = "github", icons_enabled = true},
sections = {
lualine_a = {"mode"},
lualine_b = {
@@ -137,3 +137,13 @@ require("lualine").setup {
},
extensions = {}
}
-----------------------
-- GITHUB NVIM THEME --
-----------------------
require("github-theme").setup(
{
theme_style = "dark_default",
hide_inactive_statusline = false
}
)
+1 -1
View File
@@ -69,7 +69,7 @@ map("n", "<Leader>p", ":Buffers <CR>")
map("n", "<Leader>h", ":Helptags <CR>")
map("n", "<Leader>;", ":History: <CR>")
map("n", "<Leader>c", ":Commands <CR>")
map("n", "<Leader>/", ":Rg <CR>")
map("n", "<Leader>s", ":Rg <CR>")
--map("n", "<Leader>[", ":Windows <CR>")
---------
+38 -7
View File
@@ -138,7 +138,17 @@ end
-- enable null-ls integration (optional)
require("null-ls").config {}
require("lspconfig")["null-ls"].setup {on_attach = common_on_attach}
require("lspconfig")["null-ls"].setup {
on_attach = common_on_attach,
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics,
{
virtual_text = false
}
)
}
}
local tsserver_on_attach = function(client, bufnr)
local ts_utils = require("nvim-lsp-ts-utils")
@@ -147,7 +157,12 @@ local tsserver_on_attach = function(client, bufnr)
eslint_enable_diagnostics = true,
eslint_enable_code_actions = true,
enable_import_on_completion = true,
filter_out_diagnostics_by_severity = {"error", "warning", "information", "hint"}
filter_out_diagnostics_by_severity = {
"information",
"hint"
--"warning",
--"error",
}
}
ts_utils.setup_client(client)
@@ -168,12 +183,20 @@ require("nvim-lsp-installer").on_server_ready(
local opts = {
on_attach = common_on_attach,
capabilities = capabilities,
flags = {
debounce_text_changes = 150
},
capabilities = capabilities,
settings = {
format = {enable = false}
},
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics,
{
virtual_text = false
}
)
}
}
@@ -186,10 +209,18 @@ require("nvim-lsp-installer").on_server_ready(
if server.name == "tsserver" then
opts.on_attach = tsserver_on_attach
--opts.handlers = {
-- ["textDocument/publishDiagnostics"] = function()
-- end
--}
elseif server.name == "sumneko_lua" then
opts.settings.Lua = {
diagnostics = {
globals = {
-- neovim
"vim",
-- awesome
"awesome",
"client"
}
}
}
end
server:setup(opts)
+2 -1
View File
@@ -19,7 +19,8 @@ require("packer").startup(
use "dhruvasagar/vim-table-mode"
-- VIM THEMING
use "rafi/awesome-vim-colorschemes" -- vim themes
--use "rafi/awesome-vim-colorschemes" -- vim themes
use "projekt0n/github-nvim-theme"
-- FILE MANAGEMENT
use "junegunn/fzf"