aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-10-30 00:49:30 +0100
committerpml68 <contact@pml68.me>2024-10-30 00:49:30 +0100
commit3c106ec1de673ca47e05baefc3b2e425d71abcb3 (patch)
treebdfebd8213456d27b3938c75d30cb48ad2daf29c
parentfeat: change color rendering from 'virtual' to 'background' (diff)
downloadnvim-3c106ec1de673ca47e05baefc3b2e425d71abcb3.tar.gz
feat: disable mouse
-rw-r--r--lua/pml68/settings.lua60
1 files changed, 30 insertions, 30 deletions
diff --git a/lua/pml68/settings.lua b/lua/pml68/settings.lua
index f862d85..3c9f44a 100644
--- a/lua/pml68/settings.lua
+++ b/lua/pml68/settings.lua
@@ -16,35 +16,35 @@ end
local function get_attached_clients()
- local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 })
- if #buf_clients == 0 then
- return "LSP Inactive"
- end
-
- local buf_ft = vim.bo.filetype
- local buf_client_names = {}
-
- for _, client in pairs(buf_clients) do
- table.insert(buf_client_names, client.name)
- end
-
- local unique_client_names = {}
- for _, client_name_target in ipairs(buf_client_names) do
- local is_duplicate = false
- for _, client_name_compare in ipairs(unique_client_names) do
- if client_name_target == client_name_compare then
- is_duplicate = true
- end
- end
- if not is_duplicate then
- table.insert(unique_client_names, client_name_target)
- end
- end
-
- local client_names_str = table.concat(unique_client_names, ", ")
- local language_servers = string.format("[%s]", client_names_str)
-
- return language_servers
+ local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 })
+ if #buf_clients == 0 then
+ return "LSP Inactive"
+ end
+
+ local buf_ft = vim.bo.filetype
+ local buf_client_names = {}
+
+ for _, client in pairs(buf_clients) do
+ table.insert(buf_client_names, client.name)
+ end
+
+ local unique_client_names = {}
+ for _, client_name_target in ipairs(buf_client_names) do
+ local is_duplicate = false
+ for _, client_name_compare in ipairs(unique_client_names) do
+ if client_name_target == client_name_compare then
+ is_duplicate = true
+ end
+ end
+ if not is_duplicate then
+ table.insert(unique_client_names, client_name_target)
+ end
+ end
+
+ local client_names_str = table.concat(unique_client_names, ", ")
+ local language_servers = string.format("[%s]", client_names_str)
+
+ return language_servers
end
vim.api.nvim_create_autocmd({ "FileType", "BufEnter", "FocusGained" }, {
@@ -72,7 +72,7 @@ vim.o.tabstop = 2
vim.o.softtabstop = 2
vim.o.expandtab = true
-vim.o.mouse = "a"
+vim.o.mouse = ""
vim.o.smartindent = true