diff --git a/lua/bufferline/lua.lua b/lua/bufferline/lua.lua index 6f42f00..3f090a1 100644 --- a/lua/bufferline/lua.lua +++ b/lua/bufferline/lua.lua @@ -1,5 +1,6 @@ vim.o.termguicolors = true +-- colors for active , inactive buffer tabs require "bufferline".setup { options = { buffer_close_icon = "", diff --git a/lua/coc/lua.lua b/lua/coc/lua.lua deleted file mode 100644 index e69de29..0000000 diff --git a/lua/lsp_config/lua.lua b/lua/lsp_config/lua.lua deleted file mode 100644 index 7d52eb9..0000000 --- a/lua/lsp_config/lua.lua +++ /dev/null @@ -1,22 +0,0 @@ -vim.cmd [[ packadd nvim-lspconfig ]] -vim.cmd [[ packadd completion-nvim ]] - --- Enable(broadcasting) snippet capability for completion -local html_snippet_capabilities = vim.lsp.protocol.make_client_capabilities() -html_snippet_capabilities.textDocument.completion.completionItem.snippetSupport = true - -require "lspconfig".html.setup { - on_attach = lsp_on_attach, - capabilities = html_snippet_capabilities, - cmd = {"html-languageserver", "--stdio"}, - filetypes = {"html"}, - init_opitons = { - configurationSection = {"html", "css", "javascript"}, - embeddedLanguages = { - css = true, - javascript = true - } - } -} - -vim.g.completion_enable_snippet = "UltiSnips" diff --git a/lua/nvim-compe/lua.lua b/lua/nvim-compe/lua.lua index a2320b1..743bc32 100644 --- a/lua/nvim-compe/lua.lua +++ b/lua/nvim-compe/lua.lua @@ -43,6 +43,7 @@ _G.s_tab_complete = function() end end +-- mappings vim.api.nvim_set_keymap("s", "", "v:lua.tab_complete()", {expr = true}) vim.api.nvim_set_keymap("i", "", "v:lua.s_tab_complete()", {expr = true}) vim.api.nvim_set_keymap("s", "", "v:lua.s_tab_complete()", {expr = true}) diff --git a/lua/nvim-lspconfig/lua.lua b/lua/nvim-lspconfig/lua.lua index 2a2ec79..c3aba0d 100644 --- a/lua/nvim-lspconfig/lua.lua +++ b/lua/nvim-lspconfig/lua.lua @@ -29,6 +29,7 @@ map("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) map("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) map("n", "q", "lua vim.lsp.diagnostic.set_loclist()", opts) +-- lsp for html , css and js/ts require "lspconfig".tsserver.setup {} require "lspconfig".cssls.setup {} require "lspconfig".html.setup {} diff --git a/lua/telescope-nvim/lua.lua b/lua/telescope-nvim/lua.lua index d001c5f..df9dca1 100644 --- a/lua/telescope-nvim/lua.lua +++ b/lua/telescope-nvim/lua.lua @@ -59,6 +59,8 @@ require("telescope").load_extension("media_files") local opt = {noremap = true, silent = true} vim.g.mapleader = " " + +-- mappings vim.api.nvim_set_keymap("n", "ff", [[lua require('telescope.builtin').find_files()]], opt) vim.api.nvim_set_keymap( "n", diff --git a/lua/utils/lua.lua b/lua/utils/lua.lua index 34ae770..9286b5f 100644 --- a/lua/utils/lua.lua +++ b/lua/utils/lua.lua @@ -19,8 +19,11 @@ opt("o", "mouse", "a") opt("w", "signcolumn", "yes") opt("o", "cmdheight", 1) -opt("o", "updatetime", 250) + +opt("o", "updatetime", 250) -- update interval for gitsigns opt("o", "clipboard", "unnamedplus") + +-- for indenline opt("b", "expandtab", true ) opt("b", "shiftwidth", 2 ) diff --git a/lua/web-devicons/gitsigns b/lua/web-devicons/gitsigns deleted file mode 100644 index e69de29..0000000